Skip to main content

Interface: StoredAuthorizationCode

Defined in: oauthServerTypes.ts:120

A short-lived authorization code with its bound PKCE challenge and the details needed to issue tokens when the code is later exchanged.

Properties

clientId

clientId: string

Defined in: oauthServerTypes.ts:124

The client_id the code was issued to.


code

code: string

Defined in: oauthServerTypes.ts:122

The opaque authorization code value.


codeChallenge

codeChallenge: string

Defined in: oauthServerTypes.ts:128

The PKCE code_challenge (S256) bound to this code.


expiresAt

expiresAt: number

Defined in: oauthServerTypes.ts:134

Unix timestamp (milliseconds) after which the code is invalid.


redirectUri

redirectUri: string

Defined in: oauthServerTypes.ts:126

The redirect URI the code was issued for (must match on exchange).


scopes

scopes: string[]

Defined in: oauthServerTypes.ts:130

The scopes granted to this code.


subject

subject: string

Defined in: oauthServerTypes.ts:132

The authenticated end-user subject identifier.