Skip to content

Graphorin API reference v0.7.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:40
secretsStore?readonlySecretsStoreSecrets store the persisted tokens resolve from (SPL-1) - with it, the bridge issues Authorization headers across process restarts.packages/mcp/src/oauth/bridge.ts:30
serverIdreadonlystringStable identifier of the persisted OAuth server (serverId).packages/mcp/src/oauth/bridge.ts:32
signal?readonlyAbortSignalOptional per-request AbortSignal (forwarded to refresh).packages/mcp/src/oauth/bridge.ts:42
storagereadonlyOAuthServerStorePersistent storage.packages/mcp/src/oauth/bridge.ts:34