switchAccount(
args: {lix:Pick<Lix,"db">;to:Pick<{id:LixGenerated<string>;name:string; },"id"|"name">[]; }):Promise<void>
Switch the current account to the provided account.
One active account
await switchAccount({ lix, to: [otherAccount] });Multiple active accounts
await switchAccount({ lix, to: [account1, account2] });| Parameter | Type |
|---|---|
args | { lix: Pick<Lix, "db">; to: Pick<{ id: LixGenerated<string>; name: string; }, "id" | "name">[]; } |
args.lix | Pick<Lix, "db"> |
args.to | Pick<{ id: LixGenerated<string>; name: string; }, "id" | "name">[] |
Promise<void>