Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/mcp / / OAuthAuthorizationProviderOptions

Interface: OAuthAuthorizationProviderOptions

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

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:41
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:31
serverIdreadonlystringStable identifier of the persisted OAuth server (serverId).packages/mcp/src/oauth/bridge.ts:33
signal?readonlyAbortSignalOptional per-request AbortSignal (forwarded to refresh).packages/mcp/src/oauth/bridge.ts:43
storagereadonlyOAuthServerStorePersistent storage.packages/mcp/src/oauth/bridge.ts:35