Users & Profile
Sign out of every device
POST
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 (7 days unless configured otherwise). Push tokens are left registered.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
All sessions cleared
application/json- response
status*integersuccess*booleanmessage*stringdata*unknowncurl -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}