Skip to content

LowdbAdapter

Lowdb data adapter

  • Usage: const dataAdapter = new LowdbAdapter();

See

Lowdb

Implements

Properties

db

db: Low<OIDCClientSession[]>

Database

Defined in

src/dataAdapters/LowdbAdapter.ts:26


options

options: LowdbAdapterOptions

Options

Defined in

src/dataAdapters/LowdbAdapter.ts:28

Methods

close()

close(): Promise<void>

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.close

Defined in

src/dataAdapters/LowdbAdapter.ts:112


delete()

delete(sessionId): Promise<void>

Parameters

sessionId: string

Session ID

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.delete

Defined in

src/dataAdapters/LowdbAdapter.ts:99


fetch()

fetch(sessionId): null | OIDCClientSession

Parameters

sessionId: string

Session ID

Returns

null | OIDCClientSession

Implementation of

OIDCClientDataAdapter.fetch

Defined in

src/dataAdapters/LowdbAdapter.ts:63


insert()

insert(session): Promise<void>

Parameters

session: OIDCClientSession

Session

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.insert

Defined in

src/dataAdapters/LowdbAdapter.ts:73


prune()

prune(): Promise<void>

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.prune

Defined in

src/dataAdapters/LowdbAdapter.ts:105


update()

update(session): Promise<void>

Parameters

session: OIDCClientSession

Session

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.update

Defined in

src/dataAdapters/LowdbAdapter.ts:84


factory()

static factory(options?): Promise<LowdbAdapter>

Parameters

options?: Partial<LowdbAdapterOptions>

LokiFileAdapterOptions

Returns

Promise<LowdbAdapter>

LokiFileAdapter instance

Defined in

src/dataAdapters/LowdbAdapter.ts:42