Force Logout user
Logs out a user by invalidating their session. This endpoint is typically called when a user signs out of the game or switches to another account.
X-Stash-Api-Key<token>
DEPRECATED: API key authentication is no longer supported for new shops. Use HMAC authentication via the x-stash-hmac-signature header instead for the best security. Existing shops may continue using their X-Stash-Api-Key for server-to-server operations, but are encouraged to migrate to HMAC as soon as possible.
In: header
Query Parameters
userIdstring
User ID to logout
Response Body
curl -X POST "https://test-api.stash.gg/sdk/server/custom_login/logout?userId=string"{}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?