-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat: Add authentication store and create useLogoutHook #2763
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 17 Jul 24 18:28 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
LGTM |
…2763) * feat: add authentication store and create useLogoutHook * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com> (cherry picked from commit 6e75a05)
This pull request adds an authentication store and creates a
useLogoutHook
hook. The authentication store manages the user's authentication state, including whether the user is an admin, whether they are authenticated, and their access token. TheuseLogoutHook
hook handles the logout functionality, including making a request to log the user out and redirecting them to the login page.