Skip to main content

Interface: ClientStore

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

App-provided store for OAuth clients. The core owns protocol mechanics; the app owns persistence (DynamoDB, Postgres, in-memory, …).

Properties

get

get: (clientId) => OAuthClient | Promise<OAuthClient | undefined> | undefined

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

Look up a client by its client_id. Return undefined if unknown.

Parameters

ParameterType
clientIdstring

Returns

OAuthClient | Promise<OAuthClient | undefined> | undefined


register

register: (client) => void | Promise<void>

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

Persist a newly registered client.

Parameters

ParameterType
clientOAuthClient

Returns

void | Promise<void>