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
Currently, the react fetches the user details from the jwt stored in the user's local storage of the browser. But even if the jwt is expired it reads and considers the user to be logged in and the API requests fail with 401.
ToDos
Frontend
On boot setTimeout on 60 minutes before jwt expiration to send a refresh token request, if the time is negative send request immediately
Write an axios request interceptor to logout the user when receiving 401 status code
Backend
Implement a hook in services/oneauth to refresh the jwt
jwt shouldn't have been expired for more than 7 days
The text was updated successfully, but these errors were encountered:
Currently, the react fetches the user details from the jwt stored in the user's local storage of the browser. But even if the jwt is expired it reads and considers the user to be logged in and the API requests fail with 401.
ToDos
Frontend
Backend
services/oneauth
to refresh the jwtThe text was updated successfully, but these errors were encountered: