-
Notifications
You must be signed in to change notification settings - Fork 1.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
Chapter 15 - Enabling Redirect in signOut #907
Comments
If you try this example: https://next-learn-dashboard.vercel.sh , it will redirect to login page after signing out. But I find the URL is not right. Should be |
Thanks for the link ... the demo link is hit or miss for me. In Chrome, after updating, it works and redirects back to login some of the time. But doesn't work in fresh install of Firefox or Edge. So, I'm not sure that this an issue with the code or the NextAuth implemenetation in this project at this time. I'll look into this with other projects and update back here once I've gained a better understanding of things. I appreciate your reply. |
I see the following issue was raised which also provides a solution for the redirect: #904 (comment) . Noting that auth documentation requires "Add a Route Handler under /app/api/auth/[...nextauth]/route.ts." which solves this issue. Thanks |
Hi,
In Chapter 15 of the nextJS dashboard documentation, the signOut does not redirect to the login page given the sample code. I have added the following in /sidenav.tsx :
Perhaps an update to the documentation should be made?
Hope this helps.
The text was updated successfully, but these errors were encountered: