Skip to Content
HomeLink Hub
Users & Profile

Sign out of every device

POST
/api/v1/user/logout-all-devices

Access: Bearer token required.

Removes the account's stored refresh token and clears the whole session list, including the session making the request. No request body is read. After this, POST /auth/refresh-token fails on every device until the user signs in again. Access tokens that were already issued are not revoked: they keep working until they expire (JWT_ACCESS_EXPIRY, 15 minutes by default). Push tokens are left registered.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

All sessions cleared

application/json
  1. response
status*integer
success*boolean
message*string
data*unknown
Example Request
curl -X POST 'http://localhost:4000/api/v1/user/logout-all-devices'
Example Response
{  "status": 200,  "success": true,  "message": "Logged out from all devices.",  "data": null}