Skip to content

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

ParameterTypeDescription
storageOAuthServerStore-
serverIdstring-
options{ secretsStore?: SecretsStore; signal?: AbortSignal; }-
options.secretsStore?SecretsStoreSPL-1: resolves the persisted refresh token across processes.
options.signal?AbortSignal-

Returns

Promise&lt;OAuthSession&gt;

Stable