You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback URL after a successful login does not support a Next.js basePath. Even attaching the basePath to the APP_BASE_URL environment variable doesn't solve the issue.
You can verify this yourself by creating a URL in your browser console. e.g.:
Since basePath is a configurable property in Next.js (and a common requirement) I would expect this library to automatically detect and inject this basePath.
Reproduction
Follow the steps in the README to setup your app
Set a basePath in the next.config.js file
Try to login. In my case, since the URL without the base path is not in the allowed callback URLs, I see the following error:
Checklist
Description
The callback URL after a successful login does not support a Next.js basePath. Even attaching the basePath to the APP_BASE_URL environment variable doesn't solve the issue.
You can verify this yourself by creating a URL in your browser console. e.g.:
Since basePath is a configurable property in Next.js (and a common requirement) I would expect this library to automatically detect and inject this basePath.
Reproduction
"http://localhost:3000/auth/callback is not in the list of allowed callback URLs"
Additional context
No response
nextjs-auth0 version
4.0.0-beta.9
Next.js version
next15.0.3
Node.js version
22.11.0
The text was updated successfully, but these errors were encountered: