Fuselage
Powered By GitBook
Logout Other Clients
Logs out other clients.
URL
Requires Auth
HTTP Method
api/v1/users.logoutOtherClients
YES
POST

Headers

Argument
Example
Required
Description
X-User-Id
myuser-name
Required
Your username hash (returned after you log in through the API)
X-Auth-Token
myauth-token
Required
Your token (returned after you log in through the API)

Example Call

1
curl --location --request POST 'http://localhost:3000/api/v1/users.logoutOtherClients\
2
--header 'X-Auth-Token: myauth-token' \
3
--header 'X-User-Id: myuser-name'
Copied!

Result

Success

1
{
2
"token": "SnS70r0VkngGFrSbxVK-pdwFMEzhefcjQgdnXaPeAaq",
3
"tokenExpires": "2021-12-27T14:33:09.851Z",
4
"success": true
5
}
Copied!

Errors

The following error can occur upon the endpoint.
    Authorization: Requires an authentication token for the request to be made.
Authorization
1
{
2
"status": "error",
3
"message": "You must be logged in to do this."
4
}
Copied!
Last modified 21d ago
Export as PDF
Copy link