How to find expiry time from auth0 token

Hey @amanmaheshwari905 thanks for getting back to me :slight_smile:

Gotcha! You’ll need to decode the access token to get the exp claim, so I would focus there. Are there any particular errors you when attempting to decode? Issues arise most often when attempting to decode an opaque access token - In order for the access token to be a JWT you’ll need to include an audience (API identifier in Auth0) in your authorize request.

If you include the openid scope in the request you will get both an access and ID token - Otherwise only an access token.

Hope this helps!

1 Like