minca

Interface: AccountStore

Defined in: packages/session/src/account-store.ts:55

Properties

PropertyModifierTypeDefined in
kindreadonly"folder" | "browser"packages/session/src/account-store.ts:56

Methods

list()

list(): Promise<readonly AccountSummary[]>;

Defined in: packages/session/src/account-store.ts:64

Every account here, most recently used first.

At most one entry per identity. Two rows for one DID is always a mistake — they would appear as separate accounts in a picker while being the same person — so a duplicate is collapsed onto the most recently used.

Returns

Promise<readonly AccountSummary[]>


read()

read(id): Promise<
  | AccountVault
| null>;

Defined in: packages/session/src/account-store.ts:66

One account's locked keys

Parameters

ParameterType
idstring

Returns

Promise< | AccountVault | null>


remove()

remove(id): Promise<void>;

Defined in: packages/session/src/account-store.ts:70

Forgets an account, and everything it owns

Parameters

ParameterType
idstring

Returns

Promise<void>


write()

write(summary, vault): Promise<void>;

Defined in: packages/session/src/account-store.ts:68

Adds or replaces an account

Parameters

ParameterType
summaryAccountSummary
vaultAccountVault

Returns

Promise<void>

On this page