Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / auth / InMemoryAuthSessionBackend

Class: InMemoryAuthSessionBackend

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:180

In-memory backend, useful for tests and for IDE adapters that hydrate from async native storage at startup and write through asynchronously.

Implements

Constructors

Constructor

new InMemoryAuthSessionBackend(): InMemoryAuthSessionBackend

Returns

InMemoryAuthSessionBackend

Methods

clearAll()

clearAll(): void

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:199

Returns

void

Implementation of

AuthSessionBackend.clearAll


delete()

delete(clientId): void

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:191

Parameters

clientId

string

Returns

void

Implementation of

AuthSessionBackend.delete


find()

find(clientId): AuthSession | null

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:183

Parameters

clientId

string

Returns

AuthSession | null

Implementation of

AuthSessionBackend.find


list()

list(): AuthSession[]

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:195

Returns

AuthSession[]

Implementation of

AuthSessionBackend.list


save()

save(session): void

Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:187

Parameters

session

AuthSession

Returns

void

Implementation of

AuthSessionBackend.save

Released under the Apache-2.0 License.