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 main purpose of the localstorage is to set the token and userdetail for the extended period of time. It shouldn't be used to store data until the page reloads somehow. I don't see the usecase for the localstorage here.
If you want this behavior i.e to relogin in every reload then you could directly store the token and details in the redux and access its value in the admin.
No use of localstorage here
The text was updated successfully, but these errors were encountered:
The main purpose of the localstorage is to set the token and userdetail for the extended period of time. It shouldn't be used to store data until the page reloads somehow. I don't see the usecase for the localstorage here.
If you want this behavior i.e to relogin in every reload then you could directly store the token and details in the redux and access its value in the admin.
No use of localstorage here
The text was updated successfully, but these errors were encountered: