Being redirected to an unsecure URL using a provider, even though specified in NEXTAUTH_URL with https #6387
-
I am testing it in production: Env: NEXTAUTH_URL=https://nextauth.gmcampo.ga
When I try to login using github auth, i get this error:
Also, the console browser displays: You can check for yourselves using the link above to try to replicate. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
SOLVED: Always check what NEXTAUTH_URL is being set in production. In my case, a http link was set in production and it was overriding all my different commit where I changed it. |
Beta Was this translation helpful? Give feedback.
-
I have this same error but I am 100% sure my environment variables are HTTPS. |
Beta Was this translation helpful? Give feedback.
SOLVED: Always check what NEXTAUTH_URL is being set in production. In my case, a http link was set in production and it was overriding all my different commit where I changed it.