@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
delete()
delete(
clientId):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:191
Parameters
clientId
string
Returns
void
Implementation of
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
list()
list():
AuthSession[]
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:195
Returns
Implementation of
save()
save(
session):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:187
Parameters
session
Returns
void