Hi all, I am looking for some help.
I use Auth0 for my login in a next js app. I have my custom domain with vercel, the vercel.app address and local host setup as callbacks:
customdomain/api/auth/callback,
vercel.app domain/api/auth/callback.
http://localhost:3000/api/auth/callback
I have a problem with some clients that have strong ssl firewalls. As they try to log in, they get an error: ERR_SSL_PROTOCOL_ERROR for vercel.app domain
This is strange tho cause they are accessing from customdomain
They seem to be redirected to the vercel.app domain callback (which should not happen, as they are accessing from the customdomain).
I tried a few things.
I deleted the vercel.app domain address and taken out the call back. I get an error from auth0 that there is a callback mismatch, it still looks for the vercel.app domain. The local host still works fine. It looks like when logging in with the customdomain it redirects to the vercel.app domain domain and then back to the customdomain , it pick the wrong callback, even if it doesn’t I delete the vercel.app domain.
I deleted the vercel.app domain/api/auth/callback and got callback mismatch.
I noticed that when I get the callback mismatch, there is this param inside the the url:
code&redirect_uri=https%3A%2F%2F vercel.app domain %2Fapi%2Fauth%2F
which does not makes sense as that domain supposingly does not exist anymore
Thank you for your help!