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
The accessToken & user information is saved in the local storage. We know when it expires, we just have to check on initial load and if expired, log the user out.
The text was updated successfully, but these errors were encountered:
Actually, I think it would be better to only check if it's expired on a request that needs authentication. That way if the user visits and only does non-authenticated activities, they're not forced to log in again.
We could use a middleware around the API requests that checks the status of the token, and logs out if expired. Basically iterating in the ideas expressed here
The accessToken & user information is saved in the local storage. We know when it expires, we just have to check on initial load and if expired, log the user out.
The text was updated successfully, but these errors were encountered: