- Docs
- Api%2Freference%2Fwallets%2FLogout
Sign out
End the session this refresh token belongs to. It stops working immediately, so the session cannot be continued. **Send the refresh token, not the access token**, as `Authorization: Bearer <refresh_token>` — the session is the one that token belongs to. An access token already in hand keeps working until it expires, for up to about fifteen minutes, so throw both tokens away once this returns. Signing out a session that has already ended succeeds, so a client retrying after a failed call has nothing special to handle. To end every session at once, use `POST /auth/logout-all`.
Authorization
refresh-token-auth The refresh token issued at sign-in, sent as
Authorization: Bearer <refresh_token>.
It is accepted only by POST /auth/refresh-token and
POST /auth/logout. Each successful refresh replaces it with a new
refresh token.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.dual.network/auth/logout"{}{
"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"
}