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
Took a glance at you code and I found that to validate the user authentication you have checked it with the presence of user data from the authSlice. Instead what we can do is we add isLogin boolean in the authSlice and set it in the state when logged in and only check isLogged in status instead of checking userdetail
The text was updated successfully, but these errors were encountered:
sagarkattel
changed the title
Token not used in Client Side
Better to use isAuth boolean than checking the presence of user
Oct 4, 2023
Took a glance at you code and I found that to validate the user authentication you have checked it with the presence of user data from the authSlice. Instead what we can do is we add isLogin boolean in the authSlice and set it in the state when logged in and only check isLogged in status instead of checking userdetail
The text was updated successfully, but these errors were encountered: