Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better to use isAuth boolean than checking the presence of user #1

Open
sagarkattel opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@sagarkattel
Copy link

sagarkattel commented 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

@sagarkattel sagarkattel changed the title Token not used in Client Side Better to use isAuth boolean than checking the presence of user Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant