Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/mcp / / OAuthAuthorizationProviderOptions

Interface: OAuthAuthorizationProviderOptions

Defined in: packages/mcp/src/oauth/bridge.ts:25

Options accepted by createOAuthAuthorizationProvider.

Properties

PropertyModifierTypeDescriptionDefined in
refreshAheadMs?readonlynumberTime-to-refresh window in milliseconds. When the session is within refreshAheadMs of expiry the provider triggers a refresh on the next request. Defaults to 5 minutes.packages/mcp/src/oauth/bridge.ts:35
serverIdreadonlystringStable identifier of the persisted OAuth server (serverId).packages/mcp/src/oauth/bridge.ts:27
signal?readonlyAbortSignalOptional per-request AbortSignal (forwarded to refresh).packages/mcp/src/oauth/bridge.ts:37
storagereadonlyOAuthServerStorePersistent storage.packages/mcp/src/oauth/bridge.ts:29