ID tokens
Build on Kinde
Access tokens are a secure way of authenticating users, and passing information about a user to to a system.
Bearer
is a common token type used in OAuth 2.0.exp
- Access tokens come with an expiration time (also known as expiry or lifetime) after which it is no longer valid. The timestamp is usually represented in seconds and can be calculated using the Epoch timestamp (UNIX) or other methods. More about setting token expiry in Kinde.scp
- information about the scopes granted to the token holder. These scopes define what actions or resources the token can access. There can be multiple scope values, so the type of this claim is an array
.iss
claim in JWT. Typically your kinde domain e.g. https://<your_subdomain>.kinde.com
sub
claim in JWT. If this is an access token for a Kinde user this will be their ID e.g. kp_xxxx
aud
claim in JWT. There can be multiple audience values, so the type of this claim is an array
.iat
claim in JWT. The timestamp is usually represented in seconds and can be calculated using the Epoch timestamp (UNIX) or other methods.jti
- identifier for the access token, useful for tracking and validation purposes. See this definition.Organization - org_code
claim for the organization they are accessing. Format is org_xxxx
.
Feature flags - feature_flags
claim. Access controls for what features the user can see and access. Format is:
We use short codes for the various keys in the feature flags claim such as t
and v
to keep the token size down.
t
= type
v
= value
b
= boolean
i
= integer
s
= strong
Permissions - permissions
claim controls for what the user can do in an app. This is an array. For example:
(MS Entra ID authentication only) Claims starting with ext_
indicate that user details have come from a third party enterprise auth provider like Microsoft. For example:
When you use the refresh_token
grant to refresh an access token, Kinde will return an existing access token if that existing access token is not expired. You will get a completely new access token if one (or more) of the following conditions are met: