Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / OAuthStrategy

Interface: OAuthStrategy

Defined in: packages/security/src/oauth/types.ts:278

Strategy hook contract for per-provider quirks (e.g. Slack client_secret rotation, Linear refresh-token rotation per use).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
idreadonlystringMatch against serverUrl or serverId.packages/security/src/oauth/types.ts:280
matchId?readonlyRegExpOptional regex applied to serverId.packages/security/src/oauth/types.ts:284
matchUrl?readonlyRegExpOptional regex applied to serverUrl.packages/security/src/oauth/types.ts:282
onRefreshFailure?readonly(event) => void | Promise<void>Called when a refresh fails.packages/security/src/oauth/types.ts:291
onTokenRotation?readonly(event) => void | Promise<void>Called after a successful token rotation (refresh + DCR). Lets the strategy update the persisted registration / token refs.packages/security/src/oauth/types.ts:289