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
![No description](https://cdn.answeroverflow.com/1175119878965956668/image.png)
here is
I don't know then, hope someone else can help you
![No description](https://cdn.answeroverflow.com/1175120718816620554/image.png)
![No description](https://cdn.answeroverflow.com/1175120724608962672/image.png)
even i've these in urls