Giter Club home page Giter Club logo

Comments (4)

frederikprijck avatar frederikprijck commented on June 2, 2024 1

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.

frederikprijck avatar frederikprijck commented on June 2, 2024

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.

frederikprijck avatar frederikprijck commented on June 2, 2024

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.

jburos avatar jburos commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.