I’m working on integrating Auth0 authentication into an existing Next.js project hosted on Vercel. Despite following the Auth0 Next.js SDK documentation, I’m encountering several issues during implementation.
Specific Challenges:
Configuration Issues
Getting 500 errors during authentication flow
Regarding the first issue that you have posted, it appears that you application does not have configured the baseURL which would be either the AUTH0_ISSUER_BASE_URL or AUTH0_BASE_URL.
For your second issue, you might not be redirecting the user properly inside your application.
I would highly recommend to review the following posts regarding the matter:
Hello ,
The links are not that useful for me at this stage
the issue what i am facing is , we have integrated auth0 - sign in and sign up is working very prefectly even in the Auth0- Monitioring and logs i am getting success message .
The issue what i am facing is after sign in it doesnt redirect to my dashboard and gives a 400 error. I want help with that .
it appears that you application does not have configured the baseURL which would be either the AUTH0_ISSUER_BASE_URL or AUTH0_BASE_URL .
and also for this as Auth0 was installed in Vercel - These links for AUTH0_ISSUER_BASE_URL or AUTH0_BASE_URL . were there in environment varliables of the project .
AUTH0_ISSUER_BASE_URL - we are using the default one - https://dev-mm