404 NOT FOUND error with SPA app

Problem statement

We received the 404 NOT FOUND error trying to the app with domain set to our custom domain. If using the localhost, we didn’t receive the error.

Steps to reproduce

1- create a spa app
2- setup the auth_config file “domain” = “our custom domain”
3- try to login to the app
4- error reproduce 404 not found

Cause

overrides.__tenant option on auth0.WebAuth in the custom login page is not configured

Solution

Set overrides.__tenant option on auth0.WebAuth in the custom login page. Please see details in the below doc.