Skip to main content

Token

Token represents the structure returned by the authorization server in response to a successful token request. It includes access tokens, refresh tokens, and additional details necessary for client authentication and authorization in OAuth2-based flows.

access_tokenstringrequired

The newly-obtained access token.

Example: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...
expires_innumber

The lifetime of the access token, in seconds.

Example: 900
refresh_tokenstring

The refresh token used to obtain a new access token when the original token expires.

Example: eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3MDAzNjUwZC01NGJkLTRiNjEtOGZjNC02YzVjZjRlOWI3YjcifQ...
refresh_expires_innumber

The lifetime of the refresh token, in seconds.

Example: 1800
token_typestringrequired

The type of the token. Currently only bearer tokens are emitted.

Possible values: [Bearer]

Example: Bearer
id_tokenstring

The user identity token, proving that the user has been authenticated.

Example: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...
scopestring

The effective scope of the newly-obtained token.

Example: whitelabelWallet
Token
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...",
"expires_in": 900,
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3MDAzNjUwZC01NGJkLTRiNjEtOGZjNC02YzVjZjRlOWI3YjcifQ...",
"refresh_expires_in": 1800,
"token_type": "Bearer",
"id_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...",
"scope": "whitelabelWallet"
}