Graphorin API reference v0.1.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:165
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 |
|---|---|
storage | OAuthServerStore |
serverId | string |
options | { reason?: string; signal?: AbortSignal; } |
options.reason? | string |
options.signal? | AbortSignal |
Returns
Promise<void>