I followed the quick start of next.js and my login is working on dev mode on http://localhost:3000/api/auth/login.
But when I deploy my app to my server, build and start it there with
yarn start --port 3034, I get forwarded to
In the application settings I have the following callback URLs:
When I remove just the
http://localhost:3000/api/auth/callback and I access
https://admin.my-domain.app I get a default Auth0 error page:
Callback URL mismatch.
The provided redirect_uri is not in the list of allowed callback URLs.
But it is in the list. What is wrong here?
Btw: I’m using NGINX and reverse proxy the domain to the port :3034.