obtainLongLivedRefreshToken
Obtain a long-lived refresh token.
This mutation is limited to authorized third-party organizations only. Account users can only generate short-lived refresh tokens, obtainable from the 'refreshToken' field in the 'obtainKrakenToken' mutation.
Arguments
Input fields for obtaining a long-lived refresh token to extend the expiry claim of a Kraken token.
Returns
ObtainLongLivedRefreshTokenObtain a long-lived refresh token.
This mutation is limited to authorized third-party organizations only. Account users can only generate short-lived refresh tokens, obtainable from the 'refreshToken' field in the 'obtainKrakenToken' mutation.
Possible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1120: The Kraken Token has expired.
- KT-CT-1121: Please use Kraken Token to issue long-lived refresh tokens.
- KT-CT-1122: Long-lived refresh tokens can only be issued for account users.
- KT-CT-1132: Unauthorized.
- KT-CT-7899: An internal error occurred.
Allowed Viewers
Required Permissions
Can generate long lived refresh tokensQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation ObtainLongLivedRefreshToken($input: ObtainLongLivedRefreshTokenInput!) {
obtainLongLivedRefreshToken(input: $input) {
refreshExpiresIn
refreshToken
}
}
Variables
{
"input": ObtainLongLivedRefreshTokenInput
}
Response
{
"data": {
"obtainLongLivedRefreshToken": {
"refreshExpiresIn": 87,
"refreshToken": "box-message-myself-personal-thus"
}
}
}