How i can decode access_token given by auth0 authentication ?
Welcome to the Community!
audience is provided in the authorize request, then the Access Token will be a JWT that you can decode using a library such as the ones listed on https://jwt.io/.
audience is not provided, then an opaque token will be returned to your app, which cannot be decoded.
For more information on this, you can take a look at this FAQ:
Thank you for your reply,
I’m not sending request to /autorize endpoint, I’m using passport-auth0 Auth0Strategy (NodeJs, expressJs) , how i can pass this audience to get a jwt access_token and not an Opaque token
Thank you for clarifying that! Could you please share the code in your app where you are getting the opaque Access Token (be sure to remove any sensitive data such as tenant name, client ID and client secret). Thanks!