@salesforce/b2c-tooling-sdk / auth / AuthSessionBackend
Interface: AuthSessionBackend
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:75
Pluggable backend for the unified auth-session store. Synchronous on the read path so command initialization can decide auth flow without awaiting. Backends with async-only native storage (VS Code SecretStorage, OS keychain) maintain an in-memory snapshot hydrated at startup and persist writes asynchronously; implementations may expose a backend-specific flush hook for orderly shutdown.
Methods
clearAll()
clearAll():
void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:80
Returns
void
delete()
delete(
clientId):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:78
Parameters
clientId
string
Returns
void
find()
find(
clientId):AuthSession|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:76
Parameters
clientId
string
Returns
AuthSession | null
list()
list():
AuthSession[]
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:79
Returns
save()
save(
session):void
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:77
Parameters
session
Returns
void