Edit in GitHubLog an issue

revokeCustomerToken mutation

The revokeCustomerToken mutation revokes the customer's token. It returns true if the token was successfully revoked.

We recommend you specify a customer token in the header of your call. However, you also can use session authentication.

Syntax

Copied to your clipboard
mutation {
revokeCustomerToken {
RevokeCustomerTokenOutput
}
}

Reference

The revokeCustomerToken reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following call revokes the customer's token.

Request:

Copied to your clipboard
mutation {
revokeCustomerToken {
result
}
}

Response:

Copied to your clipboard
{
"data": {
"revokeCustomerToken": {
"result": true
}
}
}

Errors

ErrorDescription
The current customer isn't authorized.
The current customer is not currently logged in, or the customer's token does not exist in the oauth_token table.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.