customerAccessTokenDelete
Deletes a customer access token, effectively logging out the customer from the storefront.
Authentication
Authentication Required: Secret API key with scope
customer:auth
Mutation Structure
mutation {
customerAccessTokenDelete(customerAccessToken: String!) {
deletedAccessToken
customerUserErrors {
code
field
message
}
}
}Input Arguments
Return Type
CustomerAccessTokenDeletePayload - Payload returned by the customerAccessTokenDelete mutation containing the deleted token and any errors that occurred during the operation.
Example
mutation {
customerAccessTokenDelete(customerAccessToken: "eyJhbGciOiJIUzI1NiJ9...") {
deletedAccessToken
customerUserErrors {
code
field
message
}
}
}