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
I'm encountering an issue with my Next.js application that's secured with Auth0 when deploying it on Vercel. Upon visiting the site, I'm getting an Auth0 error because the application redirects to the callback URL of the branch deployment (e.g., my-project-*randomChar*-ns-project-vercel.app/api/auth/callback) instead of the main production URL (e.g., my-project.vercel.app/api/auth/callback) which I've configured in Auth0.
Has anyone experienced a similar problem or have any suggestions on how to ensure the application uses the main production URL for the Auth0 callback during deployments?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I'm encountering an issue with my Next.js application that's secured with Auth0 when deploying it on Vercel. Upon visiting the site, I'm getting an Auth0 error because the application redirects to the callback URL of the branch deployment (e.g.,
my-project-*randomChar*-ns-project-vercel.app/api/auth/callback
) instead of the main production URL (e.g.,my-project.vercel.app/api/auth/callback
) which I've configured in Auth0.Has anyone experienced a similar problem or have any suggestions on how to ensure the application uses the main production URL for the Auth0 callback during deployments?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions