Skip to main content

Interface: AuthCodeStore

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

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

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

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

Persist an authorization code.

Parameters​

ParameterType
codeStoredAuthorizationCode

Returns​

void | Promise<void>