Skip to content

Graphorin API reference v0.1.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:140

Refresh the OAuth session for serverId. Throws when the session has no refresh token or when the authorization server rejects the refresh.

Parameters

ParameterType
storageOAuthServerStore
serverIdstring
options{ signal?: AbortSignal; }
options.signal?AbortSignal

Returns

Promise&lt;OAuthSession&gt;

Stable