-
Notifications
You must be signed in to change notification settings - Fork 371
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
404 error when following basic setup instructions #1731
Comments
The main issue here is that instead of redirecting me to the auth0 server where authentication of my credentials can take place, I instead end up at Does this have something to do with whether one uses CSR or SSR? Due to the use of |
Same here, wondering if the CSR is my problem too, obviously isn't finding its way to the Auth0 redirect logic 😢 |
Checklist
Description
Hello, I'm following the basic nextjs-auth0 example to try to add auth0 authentication to my nextjs app.
However, I keep getting
404: not found
error when trying to access the login route located at/api/auth/login
.For the record, I am just deploying locally (localhost:3000). I am using the NextJS
app
router and have setup everything according to the instructions page, including setting up the application in my Auth0 dashboard.Reproduction
https://github.com/auth0/nextjs-auth0
for registering and configuring the app in auth0 dashboard1a) add
AUTH0_BASE_URL
,AUTH0_ISSUER_BASE_URL
,AUTH0_CLIENT_ID
,AUTH0_CLIENT_SECRET
values to .env file.handleAuth
at/app/api/auth/[auth0]/route.js
(note that I have a parent src directory above the app directory)UserProvider
to layout.js via:http:https://localhost:3000/api/auth/login
, however, at this route, I get a 404 error?It seems like I'm missing something very simple and basic here, but can't figure out what it is? Thank you in advance,
Additional context
No response
nextjs-auth0 version
3.5.0
Next.js version
14.1.3
Node.js version
20
The text was updated successfully, but these errors were encountered: