Giter Site home page Giter Site logo

Invalid algorithm error about auth0-spa-js HOT 6 CLOSED

Hopchenko avatar Hopchenko commented on August 15, 2024
Invalid algorithm error

from auth0-spa-js.

Comments (6)

luisrudge avatar luisrudge commented on August 15, 2024 5

This library only supports RS256 tokens. Can you check your application and make sure you're using RS256 tokens instead of HS256?

This can be configured in the advanced settings in your application page:

image

from auth0-spa-js.

Tazaf avatar Tazaf commented on August 15, 2024 3

That worked.

But it would be very welcome to have this crucial piece of information on this tutorial QuickStart page 😉

from auth0-spa-js.

luisrudge avatar luisrudge commented on August 15, 2024

@Tazaf Thanks for the feedback! We're adding a FAQ section in our QuickStarts and this will definitely will be there!

from auth0-spa-js.

alfonmga avatar alfonmga commented on August 15, 2024

Oh my god I tripped over this so badly my face still hurts.

Applications default algorithm is HS256 and nowhere in the quickstart guide is telling you to switch it to RS256.

You guys should def update it.

from auth0-spa-js.

luisrudge avatar luisrudge commented on August 15, 2024

@alfonmga are you talking about a new client you created in the Auth0 dashboard? Or are you trying to migrate an old application to the new SDK? In any case, I'll send a PR to add this information in the Quick Start as well. Thanks for the feedback!

from auth0-spa-js.

chiaberry avatar chiaberry commented on August 15, 2024

When I was following along with the quickstart, it was just failing silently and I didn't catch the error until I tried using promises instead of async await. I agree it would be helpful to include a note in the quickstart to check our token settings.

from auth0-spa-js.

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.