Custom domain - login.us.auth0.com redirectors to tenant.us.auth0.com and fails

Hi I’m experiencing an issue with custom domains and authenticating through a Vue SPA.

Here’s what’s happening:

  • I changed the domain_name setting in my Vue app to the new custom domain.
  • I logout and reload the SPA so that I start my login flow
  • I’m using an organization flow - so I type in a valid organization name first
  • I’m presented my login options. (Enter username/password or use Google)
  • I choose to log in with Google. I authenticate okay.
  • I authenticate okay and it redirects me to login.us.auth0.com
  • login.us.auth0.com/login directs me to (my-tenant).us.auth0.com/login!! <— this part is wrong
  • Login fails and I get an error page that states - “You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session”

login.us.auth0.com seems like it should be redirecting to my custom domain. if I take the location header in the response and replace my custom domain for the incorrect domain then the login flow finishes okay.

Has anyone seen this before? I’m baffled atm. I chalked it up to a caching issues with Auth0 but it’s been 12 hours since the custom domain change and it is still happening.

Pls help! Ty