We’ve implemented authentication in our React SPA using the PKCE workflow via the @auth0/auth0-react package.
We use 127.0.0.1:7080 and 127.0.0.1:8080 for test and dev work. Port 7080 works fine but when using port 8080 users get redirected to auth0.com after logging in. The two are of course configured identically in the Auth0 dashboard i.e. both are in the list of callback URLs, logout URLs, and origins.
The disconnect seems to be when ourdomain.auth0.com/login/callback gets called.
When using port 8080 the response location header is ourdomain.auth0.com/?code=XXXXXXXXXXXX
When using port 7080 the response location header is 127.0.0.1:7080.auth0.com/?code=XXXXXXXXXXXX