@salesforce/b2c-tooling-sdk / auth / FileAuthSessionBackend
Class: FileAuthSessionBackend
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:92
Default JSON-file-backed implementation. Path defaults to <oclif data dir>/auth-sessions.json. Atomic writes via tmp + rename.
Implements
Constructors
Constructor
new FileAuthSessionBackend(
dataDir):FileAuthSessionBackend
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:93
Parameters
dataDir
string
Returns
FileAuthSessionBackend
Methods
clearAll()
clearAll():
void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:123
Returns
void
Implementation of
delete()
delete(
clientId):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:111
Parameters
clientId
string
Returns
void
Implementation of
find()
find(
clientId):AuthSession|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:95
Parameters
clientId
string
Returns
AuthSession | null
Implementation of
list()
list():
AuthSession[]
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:119
Returns
Implementation of
save()
save(
session):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:99
Parameters
session
Returns
void