Replies: 6 comments 5 replies
-
Did you manage to resolve this? I'm having the same issue. |
Beta Was this translation helpful? Give feedback.
-
I still have a similar problem. It occurs in both V4 and V3. Isn't the above rebuilt or cured by updating the server? |
Beta Was this translation helpful? Give feedback.
-
I was also getting 405 Error when trying to enable Google Provider for NEXT Auth in Next.js 13 and 14. Solution is very simple, just delete [...nextauth] folder and recreate it. |
Beta Was this translation helpful? Give feedback.
-
Looks like NextAuth has an issue with NextJS14 and SRC project instead of Pages. What happened in my case was that I had to encapsulate the NextAuth into the proper requests. -> Step 1 : const myNextAuthOptions = {} // Your options here… export async function GET( req,res ) { export async function POST( req,res ) { [!] New Error : -> Step 2 : This fixed for me. Hope it could help you. |
Beta Was this translation helpful? Give feedback.
-
just add this code ` export { handler as GET, handler as POST }; |
Beta Was this translation helpful? Give feedback.
-
i still have the same error const handler = nextAuth({ export { handler as GET, handler as Post }` |
Beta Was this translation helpful? Give feedback.
-
I am getting
Method GET not allowed!
while signing.Code:
[...nextauth].js
page component
This code displays me a signin button, when i clicked, then it takes me on this url.
http://localhost:3000/api/auth/signin?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Ftest
I got this on the browser screen.
This is logged on the console.
Beta Was this translation helpful? Give feedback.
All reactions