Sign in leads to a 404: localhost:3000/api/auth/error #2995
-
I am new to React and nextjs in general, so any pointers on what I am doing wrong here would be very helpful. Thank you! My nextjs and next-auth setup is as below: index.jsx
app.tsx
...nextauth.js
cart.jsx
What's happeningThe sign in button appears okay, and when I click on it, it takes me to
That in turn leads me to this documentation page. As I understand, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured out the problem here! The file is named |
Beta Was this translation helpful? Give feedback.
I figured out the problem here! The file is named
...nextauth.js
incorrectly. It must be[...nextauth].js
instead.