logout
Requires an authenticated session.
Signs the user out: clears the sign-in cookies and ends the current session.
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 Logout {
logout
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation Logout {\n logout\n}"
}
EOF
Response:
{
"data": {
"logout": true
}
}
logout: Boolean!
Type
Boolean scalar
The Boolean scalar type represents true or false.