Open himynameistim opened 2 months ago
Figured this out. The instructions specify to set Allowed origins and by default there is a property named Allowed web origins in the Auth0 Application settings.
However in addition to this Cross-Origin Authentication needs to be switched on and the following domains added to Allowed Origins (CORS)
capacitor://localhost, http://localhost, http://localhost:3000/, https://localhost
If you don't do this the following error will appear in the logs.
Origin https://localhost is not allowed. Behavior used for check: LEGACY
The documentation could be updated to make this clearer.
Checklist
Description
I have downloaded the sample for React and tested using an Android device.
Clicking login correctly loads the Auth0 login page in a browser and after entering credentials the user is taken back to the app, however they're still not authenticated.
Clicking login a second time redirects to auth0 which immediately redirects back to the app, but the app still shows the user as unauthenticated.
Reproduction
Additional context
No response
Sample
React
Platform
Android
Platform version(s)
13