Log out every session

Sign out everywhere, on every device at once. Use it after a lost phone or a password that may have been exposed. Unlike ordinary sign-out, this one takes the **access token**, because it is something the signed-in person is doing rather than an act on one particular session. Access tokens already in hand keep working until they expire, for up to about fifteen minutes. Nothing can be refreshed afterwards, so everyone has to sign in again. To end one session and leave the rest alone, use `DELETE /wallets/sessions/{sessionId}`.

POST
/auth/logout-all
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.dual.network/auth/logout-all"
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 13,
  "message": "internal error"
}