obtainKrakenToken
Create a Kraken Token (JWT) for authentication.
Provide the required input fields to obtain the token.
The token should be used as the Authorization header for any authenticated requests.
Arguments
Input fields that can be used to obtain a Json Web Token (JWT) for authentication to the API.
| Key | Steps |
|---|---|
email_from_graphql_input_fields |
['5/m'] |
failed_logins_per_ip |
['3/m'] |
ip |
['10/m'] |
ip_if_email_or_password_in_input |
['10/m'] |
Examples
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 ObtainKrakenToken($input: ObtainJSONWebTokenInput!) {
obtainKrakenToken(input: $input) {
payload
refreshExpiresIn
refreshToken
token
}
}
Variables
{
"input": ObtainJSONWebTokenInput
}
Response
{
"data": {
"obtainKrakenToken": {
"payload": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
"refreshExpiresIn": 73,
"refreshToken": "me-able-high-best-class",
"token": "recent-authority-sister-quite-political"
}
}
}