Skip to main content
Defined in: server/auth/oauth/provider.ts:9

Properties

onAuthorize?

optional onAuthorize?: (client, params, res) => Promise<void>;
Defined in: server/auth/oauth/provider.ts:17 Called during the authorization step. Implementations must eventually redirect to params.redirectUri with a code query parameter (and state if present). If omitted, all authorization requests are auto-approved immediately — suitable for testing and development only.

Parameters

client
params
AuthorizationParams
res
Response

Returns

Promise<void>

scopes?

optional scopes?: string[];
Defined in: server/auth/oauth/provider.ts:23 Scopes supported by this server, advertised in OAuth metadata.

tokenTtl?

optional tokenTtl?: number;
Defined in: server/auth/oauth/provider.ts:25 Access token lifetime in seconds. Default: 3600.