Skip to main content

Interface: AuthCodeStore

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

App-provided store for authorization codes. Codes are single-use and short-lived; the app decides where to persist them.

Properties

delete

delete: (code) => void | Promise<void>

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

Remove an authorization code (called on exchange to enforce single use).

Parameters

ParameterType
codestring

Returns

void | Promise<void>


get

get: (code) => StoredAuthorizationCode | Promise<StoredAuthorizationCode | undefined> | undefined

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

Look up an authorization code by its value.

Parameters

ParameterType
codestring

Returns

StoredAuthorizationCode | Promise<StoredAuthorizationCode | undefined> | undefined


save

save: (code) => void | Promise<void>

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

Persist an authorization code.

Parameters

ParameterType
codeStoredAuthorizationCode

Returns

void | Promise<void>