Skip to main content

Interface: StoredAuthorizationCode

Defined in: auth-core/src/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: auth-core/src/oauthServerTypes.ts:124

The client_id the code was issued to.


code​

code: string

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

The opaque authorization code value.


codeChallenge​

codeChallenge: string

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

The PKCE code_challenge (S256) bound to this code.


expiresAt​

expiresAt: number

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

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


redirectUri​

redirectUri: string

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

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


scopes​

scopes: string[]

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

The scopes granted to this code.


subject​

subject: string

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

The authenticated end-user subject identifier.