mobileRevokeSession
Public: no authentication required.
Sign-out from the buyer app: ends the session of the refresh token sent, so this device no longer counts toward the account's device limit. Always returns true — the app signs out whatever the token's state.
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:
- GraphQL
- cURL
mutation MobileRevokeSession($input: MobileRevokeSessionInput!) {
mobileRevokeSession(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MobileRevokeSession($input: MobileRevokeSessionInput!) {\n mobileRevokeSession(input: $input)\n}",
"variables": {
"input": {
"refreshToken": "string"
}
}
}
EOF
Variables:
{
"input": {
"refreshToken": "string"
}
}
Response:
{
"data": {
"mobileRevokeSession": true
}
}
mobileRevokeSession(
input: MobileRevokeSessionInput!
): Boolean!
Arguments
mobileRevokeSession.input ● MobileRevokeSessionInput! non-null input
The refresh token this device holds.
Type
Boolean scalar
The Boolean scalar type represents true or false.