Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / AuthorizeCodeOptions

Interface: AuthorizeCodeOptions

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

Options accepted by OAuthClient.authorizeCode(...).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
callbackTimeoutMs?readonlynumberMaximum time spent waiting for the callback. Defaults to 5 min.packages/security/src/oauth/types.ts:191
openAuthorizationUrl?readonly(url, signal?) => void | Promise<void>Function to render the authorization URL to the user. Defaults to openInBrowser(url) plus a console fallback. Consumers can plug in their own UI.packages/security/src/oauth/types.ts:184
portRange?readonlyreadonly [number, number]Override the localhost port range. Inclusive on both ends. Defaults to [49152, 65535].packages/security/src/oauth/types.ts:189
redirectUri?readonlystringPre-existing redirect URI. When omitted the client will spin up a localhost callback server on a random port in 49152-65535 and use http://127.0.0.1:<port>/callback.packages/security/src/oauth/types.ts:178
scope?readonlystring-packages/security/src/oauth/types.ts:172
signal?readonlyAbortSignalCancellation. Aborts the callback server, browser open, and exchange.packages/security/src/oauth/types.ts:193