Xsolla-logo

Log user out

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.

Request
Security:
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 -i -X GET \
  'https://login.xsolla.com/api/oauth2/logout?sessions=sso' \
  -H 'Authorization: YOUR_API_KEY_HERE'
Response samples
{
  • "error": {
    }
}