You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Token is verified by axios.interceptor.request in /services/api/client.ts file. This is not the aim of an interceptor and force us to use some tricks to manage authentication with redirections.
In our case it seems the role of the interceptor should only to add bearer token in the authorization header.
Token verification shoud be done by the AuthContext.Provider. Several solutions:
write custom fetcher in useSWR => useSWR(APIRoutes.me, customFetcher)
Token is verified by axios.interceptor.request in /services/api/client.ts file. This is not the aim of an interceptor and force us to use some tricks to manage authentication with redirections.
In our case it seems the role of the interceptor should only to add bearer token in the authorization header.
Token verification shoud be done by the AuthContext.Provider. Several solutions:
The text was updated successfully, but these errors were encountered: