Skip to main content

Interface: OnAuthorizeArgs

Defined in: auth-core/src/oauthServerTypes.ts:332

Arguments passed to OAuthServerOptions.onAuthorize.

Properties​

client​

client: OAuthClient

Defined in: auth-core/src/oauthServerTypes.ts:334

The resolved client making the request.


headers​

headers: Record<string, string | undefined>

Defined in: auth-core/src/oauthServerTypes.ts:342

The inbound request headers, so the app can read its own session cookie to decide whether the user is authenticated. Runner-agnostic: there is no framework context here.


request​

request: AuthorizeRequest

Defined in: auth-core/src/oauthServerTypes.ts:336

The validated authorization request.