-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
refactor: move isAuthenticated from context to zustand store" #2845
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 19 Jul 24 20:25 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
3cfcc77
to
8186f8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ow-ai#2845) * remove isAuthenticated from context and move it to zustand store * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * refactor: fix authentication logic in authStore.ts --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> (cherry picked from commit 90508b2)
This pull request moves the
isAuthenticated
state from theAuthContext
to theauthStore
in order to centralize the authentication logic. This change improves code organization and makes it easier to manage the authentication state throughout the application.