Skip to main content

customerRefreshToken

Public: no authentication required.

Exchanges a customer's refresh token for a new access token. Needs no sign-in.

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 CustomerRefreshToken($input: CustomerRefreshTokenInput!) {
customerRefreshToken(input: $input) {
accessToken
expiresIn
refreshToken
sessionToken
tokenType
user {
id
firstName
lastName
partnerName
avatar
email
}
}
}

Variables:

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

Response:

{
"data": {
"customerRefreshToken": {
"accessToken": "string",
"expiresIn": 0,
"refreshToken": "string",
"sessionToken": "string",
"tokenType": "string",
"user": {
"id": "id",
"firstName": "string",
"lastName": "string",
"partnerName": "string",
"avatar": "string",
"email": "string"
}
}
}
}
customerRefreshToken(
input: CustomerRefreshTokenInput!
): CustomerAuthResponse!

Arguments​

customerRefreshToken.input ● CustomerRefreshTokenInput! non-null input​

The refresh token to exchange.

Type​

CustomerAuthResponse object​

The result of a customer sign in.