---
title: "Account components"
description: "The sign-in form, the waitlist form, the consent prompt, the profile and security settings and the account's data: one section per component, with its props, slots, events, states and accessibility."
canonical_url: "https://nuxt-backend.dev/docs/reference/components/account"
---
# Account components

> The sign-in form, the waitlist form, the consent prompt, the profile and security settings and the account's data: one section per component, with its props, slots, events, states and accessibility.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Source](https://github.com/qruto/nuxt-backend/tree/main/src/runtime/vue/components)

The components a person meets around their account, from signing in or joining the waitlist to deleting the account. Most render a ready-made page too, so each section names the page as well as the component. Each one keeps the [component contract](https://nuxt-backend.dev/docs/reference/components#the-component-contract): its props, slots, events, states and accessibility are listed in its section.

The sections below are generated from the components' source.

## `<AuthForm>`

The complete passwordless sign-in flow (passkeys + email OTP) in one component: semantic markup where every element carries a `data-auth` attribute, built from parts (`AuthFormChoose`, `AuthFormCode`, …) that a same-named component of the app's replaces, and a slot per step.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/auth/AuthForm.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /login
      </code>
      
       page (<code>
        pages.login
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-auth
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#auth">
        <code>
          auth
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        header
      </code>
      
      , <code>
        choose
      </code>
      
      , <code>
        request-code
      </code>
      
      , <code>
        verify-code
      </code>
      
      , <code>
        passkey-offer
      </code>
      
      , <code>
        recover
      </code>
      
      , <code>
        waitlisted
      </code>
      
      , <code>
        invite-code
      </code>
      
      , <code>
        age
      </code>
      
      , <code>
        two-factor
      </code>
      
      , <code>
        undeliverable
      </code>
      
      , <code>
        error
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        success
      </code>
      
      , <code>
        error
      </code>
      
      , <code>
        step
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, request-code, verify-code, two-factor, passkey-offer, recover, waitlisted, invite-code, age, undeliverable, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        AuthFormHeader
      </code>
      
      , <code>
        AuthFormChoose
      </code>
      
      , <code>
        AuthFormPasskey
      </code>
      
      , <code>
        AuthFormEmail
      </code>
      
      , <code>
        AuthFormCode
      </code>
      
      , <code>
        AuthFormRecover
      </code>
      
      , <code>
        AuthFormWaitlisted
      </code>
      
      , <code>
        AuthFormInviteCode
      </code>
      
      , <code>
        AuthFormAge
      </code>
      
      , <code>
        AuthFormTwoFactor
      </code>
      
      , <code>
        AuthFormUndeliverable
      </code>
      
      , <code>
        AuthFormPasskeyOffer
      </code>
      
      , <code>
        AuthFormAgreement
      </code>
      
      , <code>
        AuthFormError
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Heading text. Defaults to the <code>
        auth.title
      </code>
      
       label an app set, then "Sign in to {brand.name}", then "Sign in"; an empty string hides it.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['auth']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this form, over <code>
        appConfig.backend.labels.auth
      </code>
      
       and the translations.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        validateEmail
      </code>
    </td>
    
    <td>
      <code>
        (email: string) => boolean | string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Gate emails before sending (<code>
        true
      </code>
      
       | <code>
        false
      </code>
      
       | custom message). Default: a basic shape check.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Focus moves to the new step's first control when the person moved the form on, and stays put on the step it opens on; a busy button keeps focus (`aria-disabled`) and says what it waits for; a refused field is `aria-invalid` and described by the refusal; the "Last used" mark describes its button and adds no stop; the sent-code note and the passkey offer are polite statuses, a failure an alert; the email field autocompletes as `username webauthn`, where the browser offers saved passkeys, and codes as one-time codes; the age question has a visible label and an empty field and never names the minimum, and the agreement line links each required document; an address the provider stopped delivering to reads as an alert, with the same words for every address, and a button back to the email field.

## `<WaitlistForm>`

Join the waitlist: the address, your questions, the launch-news box (unticked), then the sign-in code that proves the address, then the person's place, a link to share and a way to leave. It runs the steps of `useWaitlist()` and renders one slot per step (`join`, `verify`, `status`), each given that object, around the parts `WaitlistJoin`, `WaitlistCode` and `WaitlistPlace` (which renders `WaitlistShare`), each replaced everywhere by a same-named component of the app's. A friend's link the visitor came through is shown beside the form, and can be dropped.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/auth/WaitlistForm.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /waitlist
      </code>
      
       page (<code>
        pages.waitlist
      </code>
      
      ), inside its component
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-waitlist
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#waitlist">
        <code>
          waitlist
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        join
      </code>
      
      , <code>
        verify
      </code>
      
      , <code>
        status
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        joined
      </code>
      
      , <code>
        signed-in
      </code>
      
      , <code>
        left
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, verify-code, waitlisted, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        WaitlistJoin
      </code>
      
      , <code>
        WaitlistCode
      </code>
      
      , <code>
        WaitlistPlace
      </code>
      
      , <code>
        WaitlistShare
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'waitlist'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.waitlist
      </code>
      
       and the translations.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        source
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Where this form is, for the Source column of the Waitlist tab (letters, digits and <code>
        . : / - _
      </code>
      
      ). Default <code>
        form
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        questionLabels
      </code>
    </td>
    
    <td>
      <code>
        Record<string, string>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      What to show for each of your questions: its text, by key. Without one, the key is shown.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shareTo
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Where a friend's link points: this form's page. Default: the page it is on.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Every field has a visible label, and the launch-news box is unticked until the person ticks it; the sent-code note is a polite status, a refusal an alert that the refused field is described by and marks `aria-invalid`; a busy button keeps focus (`aria-disabled`) and says what it waits for, and the wrapper is `aria-busy`; the place is a polite status that reads in words, the honest words about admission sit beside it, and the share link is a labelled read-only field with a copy button; no names and no leaderboards are ever shown.

## `<ReauthenticateDialog>`

"Confirm it's you": the dialog a sensitive action opens when the server refuses it as `reauthentication_required`. The person signs in again with a passkey, or with a code emailed to the account's own address, and the action runs once more (`useReauthentication().withReauthentication`). The code request passes the bot check as the sign-in form's does: when the challenge asks for a click, its widget shows inside this dialog, where the person can reach it.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/auth/ReauthenticateDialog.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /admin
      </code>
      
       page (<code>
        pages.admin
      </code>
      
      ) and the <code>
        /security
      </code>
      
       page (<code>
        pages.security
      </code>
      
      ), inside their components
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-reauthenticate
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#reauthenticate">
        <code>
          reauthenticate
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        choose
      </code>
      
      , <code>
        verify-code
      </code>
      
      , <code>
        error
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        reauthenticated
      </code>
      
      , <code>
        cancelled
      </code>
      
      , <code>
        error
      </code>
      
      , <code>
        step
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      empty, ready, verify-code, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        ReauthenticatePasskey
      </code>
      
      , <code>
        ReauthenticateCode
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['reauthenticate']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this dialog, over <code>
        appConfig.backend.labels.reauthenticate
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A native modal dialog named by its heading: it opens on its first control, keeps focus inside, closes on Escape or "Cancel", and gives focus back to the control that opened it; the code field has a visible label, autocompletes as a one-time code and is described by the sent-code note, a polite status; a busy button keeps focus (`aria-disabled`) and says what it waits for; a failure is an alert. Nothing renders until a sensitive action asks.

## `<ProfileSettings>`

Account profile: identity chrome (avatar initials, verification / role / workspace badges), display-name editing, the email change, by a code from each address, and, with `@nuxtjs/i18n` and two locales or more, the person's language, which their emails are written in. Identity renders client-only — session state differs between SSR and hydration.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/ProfileSettings.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /profile
      </code>
      
       page (<code>
        pages.profile
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-profile
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#profile">
        <code>
          profile
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        identity
      </code>
      
      , <code>
        name
      </code>
      
      , <code>
        email
      </code>
      
      , <code>
        language
      </code>
      
      , <code>
        preferences
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        name-saved
      </code>
      
      , <code>
        email-changed
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, confirm-current, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        ProfileIdentity
      </code>
      
      , <code>
        ProfileNameSection
      </code>
      
      , <code>
        ProfileEmailSection
      </code>
      
      , <code>
        ProfileLanguageSection
      </code>
      
      , <code>
        ProfilePreferencesSection
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        validateEmail
      </code>
    </td>
    
    <td>
      <code>
        (email: string) => boolean | string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Gate the new email before any code is sent (<code>
        true
      </code>
      
       | <code>
        false
      </code>
      
       | custom message). Default: a basic shape check.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        showIdentity
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['profile']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.profile
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Every field has a visible label; a refused address or code is `aria-invalid` and described by its hint and the refusal; focus moves to the code once the person asked for one; a busy button keeps focus (`aria-disabled`) and says what it waits for; an outcome is a polite status, a failure an alert.

## `<SecuritySettings>`

Everything that guards the account: passkey management (add / inline rename / remove), active device sessions (revoke one / revoke others), the latest sign-ins from a new device (each signs its session out while it lasts), and signing this browser out. The account's export and its deletion are `<AccountData>`'s, which the security page renders beside it. Built entirely on `useAuth`, `usePasskeys` and `useSessions`.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/SecuritySettings.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /security
      </code>
      
       page (<code>
        pages.security
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-security
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#security">
        <code>
          security
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        passkeys
      </code>
      
      , <code>
        passkey
      </code>
      
      , <code>
        twoFactor
      </code>
      
      , <code>
        sessions
      </code>
      
      , <code>
        session
      </code>
      
      , <code>
        alerts
      </code>
      
      , <code>
        danger
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        passkey-added
      </code>
      
      , <code>
        passkey-removed
      </code>
      
      , <code>
        two-factor-enabled
      </code>
      
      , <code>
        two-factor-disabled
      </code>
      
      , <code>
        session-revoked
      </code>
      
      , <code>
        sessions-revoked
      </code>
      
      , <code>
        signed-out
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        SecurityPasskeys
      </code>
      
      , <code>
        SecurityTwoFactor
      </code>
      
      , <code>
        SecuritySessions
      </code>
      
      , <code>
        SecurityAlerts
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        sections
      </code>
    </td>
    
    <td>
      <code>
        SecuritySection[]
      </code>
    </td>
    
    <td>
      <code>
        ['passkeys', 'twoFactor', 'sessions', 'alerts', 'danger']
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        confirm
      </code>
    </td>
    
    <td>
      <code>
        (message: string) => boolean | Promise<boolean>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Confirm destructive actions; return <code>
        false
      </code>
      
       to abort. Default: the component's own confirmation dialog.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['security']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.security
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Each row's buttons are named after the passkey or the session they act on; the rename field is named and takes focus when the person starts a rename; a busy button keeps focus (`aria-disabled`) and says what it waits for; when the button pressed goes with its action (a revoked session, a removed passkey, no other session left), focus moves to the outcome or the next button of its section; the session list's loading note is a polite status and its failure an alert; each alert is one sentence naming the device and the time, and its sign-out button names the device it signs out.

## `<ConsentPrompt>`

Asks for the consents a person has not given at their current version, and nothing else: the required kinds `setupAccount({ consents })` declares after a version rises (the page waits behind a dialog until they are accepted), the age of an account that never answered the minimum age, and, while the app uses optional storage, one question per browser with **Allow** and **Decline** of equal weight. Nothing is ticked for the person. It renders nothing when there is nothing to ask, on the server, and while an administrator visits the account. Every ready-made page renders it; in a layout of your own, render it once.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/ConsentPrompt.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      every ready-made page, in the frame around it
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-consent
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#consent">
        <code>
          consent
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        consent
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        granted
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, age, storage, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        kinds
      </code>
    </td>
    
    <td>
      <code>
        string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The consent kinds to ask for, by key. Default: every required kind not accepted at its latest version.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'consent'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this prompt, over <code>
        appConfig.backend.labels.consent
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A required consent holds the page in a modal dialog named by its title, which Escape does not close; each consent is a checkbox with a visible label that names it, untouched until the person ticks it, and its document is a link beside it; a required one says so in words, and the button stays `aria-disabled` until every required box is ticked; the age field has a visible label and no hint of the minimum; the button keeps focus while the answer is saved (`aria-disabled`) and says so, and a failure is an alert. The question about optional storage is a labelled region, not a wall, whose Allow and Decline are the same kind of button.

## `<OnboardingFlow>`

The first run a new account sees once, at `/welcome`: a few short steps. The built-in ones are `profile` (name and picture), `workspace` (rename the personal workspace, or join one the person was invited to), `teammates` (invite people) and `plan` (shown only when the catalog sells one, and the person may skip it). Add steps of your own by name in `steps` and a slot of the same name; a slot named like a built-in step replaces it. Finishing or skipping stamps `onboardedAt` on the account, and the package stops sending the person here. The logic is `useOnboarding`.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/OnboardingFlow.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /welcome
      </code>
      
       page (<code>
        pages.welcome
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-onboarding
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#onboarding">
        <code>
          onboarding
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        profile
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        teammates
      </code>
      
      , <code>
        plan
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        done
      </code>
      
      , <code>
        step
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, workspace, teammates, plan, pending, done, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        OnboardingProfile
      </code>
      
      , <code>
        OnboardingWorkspace
      </code>
      
      , <code>
        OnboardingTeammates
      </code>
      
      , <code>
        OnboardingPlan
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        steps
      </code>
    </td>
    
    <td>
      <code>
        string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The steps in order: built-in ones by name and your own by their slot's name. Default: <code>
        profile
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        teammates
      </code>
      
       and <code>
        plan
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'onboarding'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the first run, over <code>
        appConfig.backend.labels.onboarding
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** The steps are an ordered list named by the `steps` label, the current one `aria-current="step"` and the done ones marked in words by their state, with the position in words ("Step 2 of 4") beside it; when the person moves on, focus moves to the new step's section so a screen reader starts at its heading, and a polite status says where they are; every field has a visible label, a refused picture address is `aria-invalid` and described by its hint; a busy button keeps focus (`aria-disabled`) and says what it waits for, the flow is `aria-busy`, a failure is an alert, and every step can be skipped from the keyboard.

## `<ActivationChecklist>`

The first tasks that lead to value, with progress, for a page of your app: the tasks `defineActivation` declares, each ticked off when its event is recorded, "2 of 4 done", a link per open task and a Dismiss button. Once every task is done it congratulates once and goes away; a dismissed checklist stays dismissed for that person. It renders nothing for a signed-out visitor, an app with no checklist, and a checklist that was dismissed. An administrator visiting the account sees its progress read-only. Separate from `<OnboardingFlow>`. The logic is `useActivation`.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/ActivationChecklist.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-activation
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#activation">
        <code>
          activation
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        task
      </code>
      
      , <code>
        congratulations
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        dismissed
      </code>
      
      , <code>
        completed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, empty, pending, done, refused
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'activation'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the checklist, over <code>
        appConfig.backend.labels.activation
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** It is a region named by its title; the progress is the native `<progress>` named "Progress" with the count in words ("2 of 4 done"); each task is a list item that says done or to do in words, never by its mark alone, and an open task is a link named by its label; the Dismiss button keeps focus while it runs (`aria-disabled`) and says so; the congratulation is a polite status in a region that stays mounted so it is announced, and an administrator's read-only view says so in place of the button.

## `<HowDidYouHear>`

One optional question after sign-up: "How did you hear about us?". The answer is kept next to the first campaign link the person arrived through, so the admin console's Growth view shows what they said beside what was tracked. `ai-assistant` makes visible the channel no referrer shows. One question, a Skip button, and a field for "Somewhere else"; nobody is asked twice: someone who answered or skipped it before sees nothing, and `done` is emitted at once. Renders nothing for a signed-out visitor.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/HowDidYouHear.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-source
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#source">
        <code>
          source
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        option
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        done
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, pending, error, done, answered, refused
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        options
      </code>
    </td>
    
    <td>
      <code>
        readonly string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The answers offered, in order, by name: each reads its label <code>
        source.options.<name in camel case>
      </code>
      
      , or its name. Default: friend, search, ai-assistant, social, podcast, other.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'source'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the question, over <code>
        appConfig.backend.labels.source
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** It is a form named by its question, the answers a radio group in a fieldset whose legend is the question and whose hint describes each answer; the "Somewhere else" field appears once its answer is picked, with a visible label; Continue keeps focus while it saves (`aria-disabled`) and says so, and Skip waits with it; a failure is an alert, and the thanks, the note to someone who answered before and the loading are a polite status in a region that stays mounted.

## `<AccountData>`

The account's data rights: download everything the app keeps of the account in one file, and delete the account, once the person typed their address to confirm it. The deletion waits out a grace period: the section then shows the date and a button that keeps the account. Built on `useAccount`; an action that takes a recent sign-in asks for one through `<ReauthenticateDialog>` (rendered here), then runs again.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/account/AccountData.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /security
      </code>
      
       page (<code>
        pages.security
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-account
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#account">
        <code>
          account
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        export
      </code>
      
      , <code>
        delete
      </code>
      
      , <code>
        error
      </code>
      
      , <code>
        footer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        exported
      </code>
      
      , <code>
        scheduled
      </code>
      
      , <code>
        kept
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, pending, error, refused, scheduled
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        AccountExport
      </code>
      
      , <code>
        AccountDeletion
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        sections
      </code>
    </td>
    
    <td>
      <code>
        AccountDataSection[]
      </code>
    </td>
    
    <td>
      <code>
        ['export', 'delete']
      </code>
    </td>
    
    <td>
      The sections to show, in order. Default both.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['account']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.account
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Each section is a region named by its heading; the confirmation field has a visible label naming the address to type, and a hint it is described by, which says so when the address typed is not the account's, the field then `aria-invalid`; the delete button stays focusable and `aria-disabled` until the address matches; Enter in the field schedules the deletion as the button does; once a deletion is scheduled the section says when it happens in words and offers one button that keeps the account; a busy button keeps focus (`aria-disabled`) and says what it waits for, and once the file is ready focus moves to its download link; the outcome is a polite status, a failure an alert; an administrator acting as the account reads a note instead of either control.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
