Oauth/token endpoint returns 401

Hello I am new to setting up an application with auth0 and need some help.
I am following this Quick-start(Auth0 JavaScript SDK Quickstarts: Login) to setup a Regular web Application with Auth0.
I am able to make the login page appear but after I login it throws a 401 for the oauth/token endpoint I am not sure what I need to change. Please help.

  • Which SDK this is regarding: auth0-spa-js
  • SDK Version: 1.13
  • Platform Version: e.g. Node
  • Code Snippets/Error Messages/Supporting Details/Screenshots:
    {“error”:“access_denied”,“error_description”:“Unauthorized”}

I missed a detail.

** when using the Default App with a Native or Single Page Application, ensure to update the Token Endpoint Authentication Method to None and set the Application Type to either SPA or Native .**

This fixed it.

2 Likes