Skip to content
View as Markdown
View as Markdown

@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

AuthSessionBackend.clearAll


delete()

delete(clientId): void

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

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:95

Parameters

clientId

string

Returns

AuthSession | null

Implementation of

AuthSessionBackend.find


list()

list(): AuthSession[]

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

Returns

AuthSession[]

Implementation of

AuthSessionBackend.list


save()

save(session): void

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

Parameters

session

AuthSession

Returns

void

Implementation of

AuthSessionBackend.save

Released under the Apache-2.0 License.