# ovok.accounts

Canonical page: https://docs.ovok.com/web-sdk/core/namespaces/accounts

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

## List the user's accounts [#list-the-users-accounts]

```ts
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](/web-sdk/core/namespaces/session).

## Reference [#reference]

- [accounts API reference](/web-sdk/core/reference/core/accounts): every method and type.
- [ovok.session](/web-sdk/core/namespaces/session): saved accounts and switching.
- [ovok.auth](/web-sdk/core/namespaces/auth): sign-in.
- [Errors and retries](/web-sdk/core/errors-and-retries)
