library · inferred from evidence
auth0-spa-js
The Auth0 JavaScript library for Single Page Applications (SPAs) that handles authentication flows, including redirect callbacks.
- 401 Unauthorized from /oauth/token (Failed exchange) following the React quickstart
Check the application type in your Auth0 dashboard: for auth0-spa-js it must be a Single Page Application. A machine-to-machine app cannot be converted to another type, so create a new SPA application and use its client ID; reporters confir
- Auth0 SPA: "Invalid state" error after social login redirect
After a social login the redirect callback throws Uncaught (in promise) Error: Invalid state because stale code/state params are still in the URL. Strip them in onRedirectCallback.