06c2a1e8 by Adam Heath

getToken() now works.

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