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
| Parameter | Type | Description |
|---|---|---|
storage | OAuthServerStore | - |
serverId | string | - |
options | { reason?: string; secretsStore?: SecretsStore; signal?: AbortSignal; } | - |
options.reason? | string | - |
options.secretsStore? | SecretsStore | SPL-1: resolves the persisted tokens so RFC 7009 actually fires. |
options.signal? | AbortSignal | - |
Returns
Promise<void>