getToken() now works.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | }, | ... | ... |
-
Please register or sign in to post a comment