Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/security / / revokeOAuthSession

Function: revokeOAuthSession()

ts
function revokeOAuthSession(
   storage, 
   serverId, 
options?): Promise<void>;

Defined in: packages/security/src/oauth/library.ts:182

Revoke the OAuth session for serverId. The function always tears the persisted record down even when the revocation endpoint returns an error.

Parameters

ParameterTypeDescription
storageOAuthServerStore-
serverIdstring-
options{ reason?: string; secretsStore?: SecretsStore; signal?: AbortSignal; }-
options.reason?string-
options.secretsStore?SecretsStoreSPL-1: resolves the persisted tokens so RFC 7009 actually fires.
options.signal?AbortSignal-

Returns

Promise&lt;void&gt;

Stable