Skip to main content

Logs, shell, usage, telemetry, and authentication

Scope: SessionRpc (per-session operations tied to a Session) For an overview of RPC and the list of all RPC pages, see RPC.

accounts (account selection for interactive login)

Use accounts() to enumerate the stored accounts available for login and start an interactive login. Each item’s label is for display, and active indicates whether the identity matches the current session’s active account. accountId is an opaque ID owned by the provider. Pass it to the login request as is, without parsing or modifying it.
Use mode: 'default' to reuse a stored identity with the provider’s normal behavior. Use mode: 'selectAccount' to explicitly show the provider’s account picker. In that case, don’t pass accountId. For details, see Authentication.
Last modified on November 19, 2026