Replies: 1 comment
-
same problem, did u solve it ? I will be very grateful if you tell me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I tried to implement google oauth login, but I've encountered issues with the callback url and signin url being wrong.
I've been struggling with this problem for a week now. If anyone has any insights or clues on how to resolve this, I would greatly appreciate your help!
My project have two environment variables.
I deployed the project using development environment variables on AWS Amplify.
When testing google oauth login, I noticed that callback url and signin url were pointing to the production url instead of development url. I checked that the project is reading the correct environment variables, and everything seems to be in order.
But when I run the same code locally, not deployed, both urls point to the development url as I expected.
I initialloy thought that
NEXTAUTH_URL
would serve as the callback url and signin url, but I'm puzzled as to why it's not functioning as expected. Any guidance on resolving this issue would be highly valued.code
console.log in browser
Beta Was this translation helpful? Give feedback.
All reactions