Xsolla-logo

Log user outClient-side

get/oauth2/logout

Logs the user out and deletes the user session according to the value of the sessions parameter. Call the Check user authentication call to see if the user is logged in.

SecurityBearer or ExternalBearer
Request
query Parameters
sessions
required
string

Shows how the user is logged out and how the user session is deleted. The parameter has the following values:

  • sso is used for deleting only the SSO user session.
  • all is used for deleting the SSO user session and invalidating all access and refresh tokens.
Enum: "sso" "all"
Responses
204

No Content

401

Unauthorized

429

Too Many Requests

Request samples
curl --request GET \
  --url 'https://login.xsolla.com/api/oauth2/logout?sessions=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer BEARER_TOKEN'
Response samples
{
  • "error": {
    }
}