We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let me first just say that this tutorial is amazing! I didn't experience any issues until chapter 15.
After first typing, then later pasting the code examples, I was receiving the following error with login and logout:
[auth][error] InvalidCallbackUrl: Invalid callback URL. Received: http://localhost:3000dashboard
Also, redirects and auth guards were not working.
After looking at some other examples, I realized that 'app/api/auth/[...nextauth]/route.ts' was missing. So I added the example code from https://authjs.dev/getting-started/installation?framework=Next.js.
import { handlers } from '@/auth'; export const { GET, POST } = handlers;
Once I added this, the error went away, and redirects and auth guards were working.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Let me first just say that this tutorial is amazing! I didn't experience any issues until chapter 15.
After first typing, then later pasting the code examples, I was receiving the following error with login and logout:
Also, redirects and auth guards were not working.
After looking at some other examples, I realized that 'app/api/auth/[...nextauth]/route.ts' was missing. So I added the example code from https://authjs.dev/getting-started/installation?framework=Next.js.
Once I added this, the error went away, and redirects and auth guards were working.
The text was updated successfully, but these errors were encountered: