06c2a1e8 by Adam Heath

getToken() now works.

1 parent 27cbbbf8
...@@ -21,10 +21,10 @@ export const loginApiSlice = createApi({ ...@@ -21,10 +21,10 @@ export const loginApiSlice = createApi({
21 endpoints: builder => ({ 21 endpoints: builder => ({
22 getToken: builder.query({ 22 getToken: builder.query({
23 query: () => ({ 23 query: () => ({
24 url: '/token?refresh', 24 url: '/token/refresh',
25 method: 'GET', 25 method: 'GET',
26 }), 26 }),
27 providesTags(result, error, arg) { 27 providesTags(result = {}, error, arg) {
28 const { expires_at, access_token } = result 28 const { expires_at, access_token } = result
29 return ['Token'] 29 return ['Token']
30 }, 30 },
......