Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/security / / refreshOAuthSession
Function: refreshOAuthSession()
ts
function refreshOAuthSession(
storage,
serverId,
options?): Promise<OAuthSession>;Defined in: packages/security/src/oauth/library.ts:152
Refresh the OAuth session for serverId. Throws when the session has no refresh token or when the authorization server rejects the refresh.
Parameters
| Parameter | Type | Description |
|---|---|---|
storage | OAuthServerStore | - |
serverId | string | - |
options | { secretsStore?: SecretsStore; signal?: AbortSignal; } | - |
options.secretsStore? | SecretsStore | SPL-1: resolves the persisted refresh token across processes. |
options.signal? | AbortSignal | - |
Returns
Promise<OAuthSession>