-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ignore /
for NEXTAUTH_URL
path, infer NEXTAUTH_SECRET
#9955
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
/
for NEXTAUTH_URL
path, detect NEXTAUTH_SECRET
/
for NEXTAUTH_URL
path, infer NEXTAUTH_SECRET
my AUTH_URL="https://localhost:3300" and I got the following error after updating to [email protected]:
Took me about 2 hours to figure out I had to change my AUTH_URL="https://localhost:3300/api/auth" Did this change break my setup because I have a non-default port of Edit: It seems removing the |
Hi, If you want people to stop using NEXTAUTH_URL in the new auth, please add a warning when it's set. Also, you should probably mention it's no longer required in your v5 Upgrade Guide. Thanks |
If you want
basePath
to be the root (eg/
), you can set thebasePath
config option instead.This fixes the issue where people unnecessarily have
NEXTAUTH_URL=http://localhost:3000
orAUTH_URL=http://localhost:3000
set, which has not been needed for a very long time. But to keep things non-breaking, we will keep supporting this format.At some point, we could add a warning when we don't detect a
pathname
on these values to nudge people to drop it, or change it to the correcthttp://localhost:3000/api/auth
format instead.