Logout
End the current session.
POST /api/auth/logoutBehavior
- Marks the current auth session as
LoggedOuton the engine. Its access and refresh tokens stop working immediately. - Clears the
bsh_access_token,bsh_refresh_tokenandXSRF-TOKENcookies. - Other sessions of the same user (other devices or browsers) are not affected. To end them, use Revoke Session.
Authentication
Send the tokens of the session to close, the same way as for any other request:
Authorization: Bearer {{accessToken}}
X-BSH-REFRESHTOKEN: {{refreshToken}}Cookie sessions send the auth cookies automatically. Requests without a session still get a successful response, but no session is closed.
Response
{
"data": [
{ "message": "Logged out" }
],
"message": "Logged out"
}Last updated on