Namespaces

ovok.accounts

List the accounts the signed-in user can access.

  • Stable unknown
  • Release candidate since 0.4.49-rc.4
  • Development since 0.4.49-dev.517+4645a0a

One read call for an account switcher. It needs a signed-in user.

List the user's accounts

const accounts = await ovok.accounts.list();

for (const { name, email } of accounts) {
  console.log(name, email);
}
  • Each entry carries an email and a name. Nothing more.
  • Calls GET accounts and returns a plain array, not a PagePromise.
  • This lists accounts on the server. Accounts saved on the device for quick sign-in are a different feature; see ovok.session.

Reference

Last updated on

On this page