/userinfo
endpoint to return a user’s profile. If you receive an opaque Access Token, you don’t need to validate it. You can use it with the /userinfo
endpoint, and Auth0 takes care of the rest. To learn more, see Get Access Tokens.
audience
. To learn more, see Get Access Tokens.
scopes
).
sub
claim). In many cases, you may find it useful to retrieve additional user information. You can do this by calling the userinfo API endpoint with the Access Token. Be sure that the API for which the Access Token is issued uses the RS256 signing algorithm.
/userinfo
endpoint have a default lifetime and can’t be changed. The length of lifetime depends on the flow used to obtain the token:
Flow | Lifetime |
---|---|
Implicit | 7200 seconds (2 hours) |
Authorization Code/Hybrid | 86400 seconds (24 hours) |