Skip to main content

refreshAccessToken

Public: no authentication required.

Exchange a valid refresh token for a fresh access + refresh token pair.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RefreshAccessToken($input: MobileRefreshTokenInput!) {
refreshAccessToken(input: $input) {
accessToken
isNewBuyer
refreshToken
userId
}
}

Variables:

{
"input": {
"refreshToken": "string"
}
}

Response:

{
"data": {
"refreshAccessToken": {
"accessToken": "string",
"isNewBuyer": true,
"refreshToken": "string",
"userId": "id"
}
}
}
refreshAccessToken(
input: MobileRefreshTokenInput!
): MobileAuthResponse!

Arguments​

refreshAccessToken.input ● MobileRefreshTokenInput! non-null input​

The details of the mobile refresh token request.

Type​

MobileAuthResponse object​

The result of a buyer sign in.