Comments (4)
Thanks, the example in this repo is for the quickstart, as you can see in the repo's readme.
That quickstart calls out the need for setting authentication method to none.
Our react SDK does not, and should not, accept a secret so there is no way to pass one because this is for public clients only (clients that are public should not contain a secret as they would expose it and it no longer is a "secret").
from auth0-react-samples.
Thanks for reporting and sorry for the delayed response.
While I look into this, I wanted to see if you have third-party cookies blocked or not? If you do, would it behave differently if you enable them?
from auth0-react-samples.
I tested this by doing the following:
- Upgrade the sample application to use React Router v6
- Use the
Auth0ProviderWithHistory
provided
Once I login, and come back to the application, I am successfully logged in in both Chrome and Firefox and can see my user information and authenticated state.
Could you share a reproducible project to look into to try and identify what's causing it?
from auth0-react-samples.
I ran into a similar problem which was due to my getting a 401/Unauthorized error on getting the authorization token via /oauth/token, similar in behavior to this old bug report.
Following the logic of that report, I tried setting the Authentication Method to "None" under the "Credentials" tab of my application settings. This resolved the error, for me at least.
This is an area that could use more documentation/clarification in the example, since the default application includes a secret but the docs aren't clear on how to pass that to the auth0 provider.
from auth0-react-samples.
Related Issues (20)
- way too many deprecated libraries HOT 9
- `Failed to load resource: the server responded with a status of 400 ()` error with /authorize call - misconfiguration issue HOT 7
- Handle 403 Insufficient Scope errors in UI HOT 1
- Google account picture request forbidden HOT 3
- just a spinning circle HOT 3
- How to configure multiple App Client IDs in auth_config.json file? HOT 1
- Example for User Initiated Account Linking using this library HOT 2
- How to send Organization ID to Auth0Provider? HOT 1
- failed to load resource the server responded with a status of 400 () in React Node HOT 1
- #15 5.788 Cannot find file './auth_config.json' in './src'. Error HOT 1
- Cypress and auth0-react integration not working HOT 3
- Oops... Unauthorized HOT 4
- Do I need to call getAccessTokenSilently every time I make an external API call? HOT 2
- Adjust your current browser settings from 'Strict' to 'Moderate'. HOT 2
- Request failed with status code 404 HOT 1
- Redirecting to page that user logged in from HOT 4
- Chrome - Invalid state HOT 2
- Firefox - Session lost on refresh and SSO does not work HOT 3
- isAuthenticated is null in auth0-react HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-react-samples.