Am I doing this basic auth wrong? works in developments, fails when deployed #2315
Replies: 2 comments 3 replies
-
This usually means it cannot load the variable. Check if you have a key mismatch e.g. you typed something other than Also, check if you set the NEXTAUTH_URL properly. |
Beta Was this translation helpful? Give feedback.
-
I've checked again,NEXTAUTH_URL is set to the website address itself provided by vercel, /api/auth/signin?callbackUrl=https%3A%2F%2Famazon-clone-lclkx7dr0-koktashev33-gmailcom.vercel.app%2F to this: api/auth/signin?csrf=true and the page refreshes, on the second click i get the error, could it have anything to do with it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
hey guys, Im using vercel to host,
Google auth works fine locally but once hosted, first click causes refresh, second one causes this error:
I've set my client id both in vercel Environment Variables
and in my env.local
How to reproduce ☕️
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions