auth0-developer-hub / spa_react_javascript_hello-world

This JavaScript code sample demonstrates how to implement authentication in a React application that uses React Router 6. You can integrate the Auth0 React SDK with React Router 6 to create route guards in React.
Apache License 2.0
64 stars 86 forks source link

Permission Denied #3

Open dlj66 opened 1 year ago

jacobbroughton commented 1 year ago

same

dsiah-aloft commented 10 months ago

If by permission denied you're running into 401's on the auth0 I would check the configuration of your app according to the trouble shooting here: https://community.auth0.com/t/401-unauthorized-when-obtaining-token-in-authorization-code-grant/44685/19

chrisdeely commented 8 months ago

TL;DR for anyone else who lands here - you may need to edit your application settings and change the "Application Type" to "Single Page Application." In my case, it already was SPA, but changing it to "Regular Web App" and back to SPA fixed whatever the issue was.

The warning when changing the application type references removing Client Grants, so perhaps that was the issue?