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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
refreshAheadMs? | readonly | number | Time-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? | readonly | SecretsStore | Secrets 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 |
serverId | readonly | string | Stable identifier of the persisted OAuth server (serverId). | packages/mcp/src/oauth/bridge.ts:32 |
signal? | readonly | AbortSignal | Optional per-request AbortSignal (forwarded to refresh). | packages/mcp/src/oauth/bridge.ts:42 |
storage | readonly | OAuthServerStore | Persistent storage. | packages/mcp/src/oauth/bridge.ts:34 |