Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/mcp / / mcpAuthRefresh

Function: mcpAuthRefresh()

ts
function mcpAuthRefresh(
   storage, 
   serverId, 
options?): Promise<OAuthSession>;

Defined in: packages/mcp/src/oauth/library.ts:42

Drive graphorin auth refresh --mcp <id>.

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;