---
title: Account
description: 'A person on the site: one account, however many providers they sign in with.'
updated_at: '2026-11-19T12:10:41+01:00'
created_at: '2026-11-19T02:32:38+01:00'
symbol:
  kind: interface
  name: Account
  signatures:
    - interface Account
  members:
    - name: id
      kind: property
      signature: 'readonly id: string'
      description: Stable and opaque; never shown.
    - name: handle
      kind: property
      signature: 'readonly handle: string'
      description: >-
        Unique across the site, chosen on first sign-in: lowercase letters,
        digits, `-` and `_`.
    - name: name
      kind: property
      signature: 'readonly name: string'
      description: 'Display name, from the provider at first sign-in.'
    - name: avatarUrl
      kind: property
      signature: 'readonly avatarUrl?: string'
    - name: createdAt
      kind: property
      signature: 'readonly createdAt: string'
      description: ISO 8601.
    - name: roles
      kind: property
      signature: 'readonly roles: readonly string[]'
      description: >-
        Roles the account holds: `admin` first for every account linked to an
        identity in the `auth` plugin's `admins`, then the roles stored for it,
        by name.
    - name: identity
      kind: property
      signature: 'readonly identity: [[reference/api/auth/Identity|Identity]]'
      description: The provider account this session signed in with.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/session.ts#L22
---

# Account
