Logout User
wss user_logoutRequest is deprecated.
! Therefore, we recommend using the new http route /logout
to log the user out of the system. !
Description
Section titled “Description”POST /logout
The request ends the user’s active session on the current device.
Request & Response Fields
Section titled “Request & Response Fields”The body
of the request can be empty, but you need to put the access_token
in the request header, for example:
{ Authorization: `Bearer ${accessToken}` }
{ "success": true }
If you do not pass an actual refresh_token
in the http request credentials,
then use hard session cleanup using a web socket request.
Old Websocket Requests Deprecated
Section titled “Old Websocket Requests ”Example
Section titled “Example”{ "request": { "user_logout": {}, "id": "RequestId" }}
{ "response": { "id": "RequestId", "success": true } }
See Also
Section titled “See Also” SAMA Progressive AUTH flow During the last month 📆, we have been implementing and testing a new authorization flow for our API.
Progressive AUTH flow in Web apps In today’s digital landscape, balancing robust security with an effortless user experience is more crucial than ever. Enter Progressive AUTH — a dynamic approach to authentication that...