Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / buildOAuthSession

Function: buildOAuthSession()

ts
function buildOAuthSession(
   serverId, 
   body, 
   override?): OAuthSession;

Defined in: packages/security/src/oauth/authorize-code-flow.ts:180

Construct an OAuthSession from a successful token-endpoint payload. Exported for the device + refresh flows so they share a single mapping path.

Parameters

ParameterType
serverIdstring
bodyTokenEndpointBody
override?{ issuedAt?: number; }
override.issuedAt?number

Returns

OAuthSession

Stable