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
At sucsessful login of user, save token(sent by server) and userId in local storage with names "token", "userId" respectively.
At first time loading of website check into local storage for token, if token is there make user as logged in and save token and userId into state of authContext, if not redirect user to login page.
Checklist
Want to modify files (js/css/other)
The text was updated successfully, but these errors were encountered:
Description
Checklist
The text was updated successfully, but these errors were encountered: