Skip to main content

Interface: OnAuthorizeArgs

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

Arguments passed to OAuthServerOptions.onAuthorize.

Properties

client

client: OAuthClient

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

The resolved client making the request.


headers

headers: Record<string, string | undefined>

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

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:166

The validated authorization request.