Unauthorized error after getting access token from Auth0

Hi everyone,

I’m currently trying to implement Strapi into our application, so far it’s been an easy task but there’s something I can’t get to figure out.

I have set up Auth0 as a provider following the documentation for providers here, but when I want to use the token to access the API I get the following(I’m using GraphQL):

{
    "data": null,
    "error": {
        "status": 401,
        "name": "UnauthorizedError",
        "message": "Missing or invalid credentials",
        "details": {}
    }
}

It’s worth noticing that I get the following fields after doing the authentication process in Auth0 in the callback URL

id_token: JWT like
access_token: JWT like
raw[access_token]: JWT like
raw[id_token]: JWT like
raw[scope]: openid profile email
raw[expires_in]: 86400
raw[token_type]: Bearer

I’ve tried using all of the tokens I get back but none of them seem to be working. Any help would be greatly appreciated

Thanks!

System Information
  • Strapi Version: 4.6.1
  • Operating System: PopOS!
  • Database: SQLite
  • Node Version: 16.19.0
  • NPM Version: 8.19.3
  • Yarn Version:

I figured it out, and opened an issue here