revokeAllSessions
Requires an authenticated session.
Ends all of the signed-in user's sessions except the current one.
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 RevokeAllSessions {
revokeAllSessions
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RevokeAllSessions {\n revokeAllSessions\n}"
}
EOF
Response:
{
"data": {
"revokeAllSessions": true
}
}
revokeAllSessions: Boolean!
Type
Boolean scalar
The Boolean scalar type represents true or false.