generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Issue on docs. NextJS Logout Button. #18
Comments
Merged
Hey @Jemeni11 thanks for the pr. Yeah you're right, but |
Hey! Thanks for that, I've seen and corrected my mistake |
Ashutosh-Bhadauriya
pushed a commit
that referenced
this issue
Oct 13, 2023
* Update next.mdx Fixes #18 * Update next.mdx Changed all occurrences of `router.refresh()` to `router.reload()` * Update next.mdx Reversed the change to the App directory example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Path: /quickstarts/fullstack/next
Next JS - Implement logout functionality
Pages Directory
You can use
@teamhanko/hanko-elements
to easily manage user logouts. Below, we make a logout button component that you can use anywhere.The docs mention
router.refresh()
but that method doesn't exist on the Next Router object. I think the author of this meant to userouter.reload()
The text was updated successfully, but these errors were encountered: