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.

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
Response samples
{
  • "error": {
    }
}