Next-auth redirects me on auth/error on signIn()
I'm using app router in nextjs, when I call
signIn("google")
in localhost, next-auth works pretty well but on production, it redirects me instantly on api/auth/error
route
this is my app/api/auth/[...next-auth]/route.ts
look like
what can be problem? in production I think, env are all good8 Replies
Did you update the
NEXTAUTH_URL
environment variable?https://admin.audiostream.space/ you can check it by your self

here is
I don't know then, hope someone else can help you


even i've these in urls