Revoke every session of an account for the calling application.
const url = 'https://session-api.sudomimus.com/revoke-all';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"subject":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://session-api.sudomimus.com/revoke-all \ --header 'Content-Type: application/json' \ --data '{ "subject": "example" }'Revokes all sessions for the supplied application-visible subject under
the calling application. Sessions under other applications are not
affected. The request requires a client-auth JWT with audience
sudomimus-session. Unknown and out-of-scope subjects return the same
revoked: true acknowledgement. Each signed request is single-use; a
transport retry requires a freshly signed JWT with a new jti.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Application-visible sector subject (sub) for the account to revoke.
Examplegenerated
{ "subject": "example"}Responses
Section titled “Responses”Authority-safe revocation acknowledgement.
object
Authority-safe acknowledgement of the revocation request.
Example
{ "revoked": true}Client-auth JWT missing, malformed, expired, invalid, or replayed.
A retry after an uncertain response must use a freshly signed JWT
with a new jti.
Error response body. A missing, malformed, or structurally invalid JSON
request body returns InvalidBody. Documented status-only failures have
an empty response body.
object
Examplegenerated
{ "reason": "example", "message": "example"}default
Section titled “default”Error response.
Error response body. A missing, malformed, or structurally invalid JSON
request body returns InvalidBody. Documented status-only failures have
an empty response body.
object
Examplegenerated
{ "reason": "example", "message": "example"}