I have my app hosted on netlfiy and the Auth0 log in button component redirects me to the correct place but only on the hosted site. When I start up my server on local host and click the same button I get an error saying
Callback URL mismatch.
The provided redirect_uri is not in the list of allowed callback URLs.
Please go to the [Application Settings page](https://manage.auth0.com/#/applications/DRMrKJJq4Mi1Vnu3gTqDCx0UVZWezAVQ/settings) and make sure you are sending a valid callback URL from your application.
Have you added the localhost callback url in your application settings in Auth0? For example, our React sample app requires that http://localhost:3000 is added as an allowed callback url in application settings.
Thanks for sharing your code - It’s hard to know for sure, but everything looks OK to me here.
If you capture a har file during the attempted login file I should be able to see the authorize request itself - Alternatively, you could inspect the network requests and extract it that way. I am just looking for the request that begins https://{YOUR_DOMAIN}.us.auth0.com/authorize?scope=XXX.
Have you had the chance to take a look at our React sample and test the login flow using localhost there?