Skip to content

basalt / auth/src / MemoryApiKeyStore

Class: MemoryApiKeyStore ​

Defined in: auth/src/stores.ts:266

Implements ​

Constructors ​

Constructor ​

> new MemoryApiKeyStore(): MemoryApiKeyStore

Returns ​

MemoryApiKeyStore

Methods ​

create() ​

> create(record): Promise<void>

Defined in: auth/src/stores.ts:269

Parameters ​

record ​

ApiKeyRecord

Returns ​

Promise<void>

Implementation of ​

ApiKeyStore.create


findByHash() ​

> findByHash(hash): Promise<ApiKeyRecord | null>

Defined in: auth/src/stores.ts:273

Parameters ​

hash ​

string

Returns ​

Promise<ApiKeyRecord | null>

Implementation of ​

ApiKeyStore.findByHash


findById() ​

> findById(id): Promise<ApiKeyRecord | null>

Defined in: auth/src/stores.ts:280

Parameters ​

id ​

string

Returns ​

Promise<ApiKeyRecord | null>

Implementation of ​

ApiKeyStore.findById


list() ​

> list(filter): Promise<ApiKeyRecord[]>

Defined in: auth/src/stores.ts:284

Active (non-revoked) keys matching the filter.

Parameters ​

filter ​

ApiKeyFilter

Returns ​

Promise<ApiKeyRecord[]>

Implementation of ​

ApiKeyStore.list


revoke() ​

> revoke(id, at): Promise<void>

Defined in: auth/src/stores.ts:300

Parameters ​

id ​

string

at ​

number

Returns ​

Promise<void>

Implementation of ​

ApiKeyStore.revoke


touch() ​

> touch(id, at): Promise<void>

Defined in: auth/src/stores.ts:295

Parameters ​

id ​

string

at ​

number

Returns ​

Promise<void>

Implementation of ​

ApiKeyStore.touch

Released under the MIT License.