Skip to main content

account_revoke_tokens

Function account_revoke_tokens 

Source
async fn account_revoke_tokens(
    __arg0: State<AppState>,
    __arg1: Path<String>,
    headers: HeaderMap,
) -> Response
Expand description

POST /dashboard/api/accounts/{did}/revoke-tokens

Ends every token that authenticates as the account: its account tokens, its app logins and its unredeemed codes. The account keeps its state and its locks, whatever they are. The ledger gains a tokensRevoked entry naming the operator, unless nothing was live to end. The answer counts what ended.