> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superintern.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer Accounts

> Let customers sign in to your SuperIntern website with an email code, a password, or Google or Microsoft, to see their orders, keep their cart, and manage their details.

Customer accounts let people sign in to your website. Signed-in customers see their orders under **My account**, keep their cart on every device, and can ask your website chat about their own orders.

> [!NOTE]
>
> Customer accounts are rolling out gradually and may not be available on your account yet. If you'd like early access, contact us at [support@superintern.ai](mailto:support@superintern.ai).

## How customers sign in

A customer enters their email address, receives a 6-digit code, and types it in. By default there's no password to remember.

* Each code works once, for 10 minutes. Only the newest code works.
* The email comes from your business, under your website's name. It doesn't mention SuperIntern.
* The email is written in English, Spanish, Japanese or Chinese, following the language of the page.
* A customer stays signed in for 30 days, or until they haven't visited for 7 days.

### Continue with Google or Microsoft

You can also let customers sign in with their **Google** account or their **Microsoft** account (Outlook, Hotmail or Microsoft 365). The sign-in page then shows **Continue with Google** and **Continue with Microsoft** above the email box. Either way the customer ends up in the same account as with an emailed code for that address.

Each option is off until you switch it on, and it may not be offered on your account yet. Work or school Microsoft accounts are accepted only when their organisation has verified the email address.

### Passwords (optional)

If you switch on **Let customers use a password**, customers can also choose a password and sign in with their email and password. The emailed code keeps working for everyone. Passwords may not be available on your account yet.

* The sign-in form offers **Sign in with a password instead**, which opens a page for their email and password. From there, **Email me a sign-in code instead** goes back to the code.
* **Forgot your password?** emails a link to **Choose a new password**. The link works once, for 30 minutes.
* In **My account**, under **Password**, customers can **Change your password** (they type the current one) or, if they have none yet, **Choose a password** (they get the same emailed link). A customer can only choose a password for an address they can receive email at.
* Resetting or changing a password signs the customer out on their other devices.

In **Customer accounts**, customers who have a password are marked **Has a password**.

If you switch passwords off again, customers sign in with a code; their passwords are kept in case you switch it back on.

You can also keep pages for signed-in customers only: see [Private pages](https://docs.superintern.ai/websites/private-pages.md).

Every customer is a person in your **People**. Someone who shops with two different businesses has two separate accounts, one with each.

## Turn it on

**1. Open your website's settings**

Go to your website and open the **Settings** tab.

**2. Switch on Customer accounts**

In **Customer accounts**, turn the switch on. You'll see *"Customers can now sign in to this website."*

**3. Choose other ways to sign in (optional)**

Under the same switch, turn on **Let customers use a password**, **Let customers sign in with Google** or **Let customers sign in with Microsoft**. These switches appear once customer accounts are on, for the options available on your account.

**4. Add a sign-in link**

Ask the website builder for it, for example: *"Add a Sign in / My account link to the header."* The starter already includes the **Sign in** and **My account** pages.

> [!TIP]
>
> Building with Claude Code or Codex? Ask it to let your customers sign in and it switches these on for you: with SuperIntern's tools (`site_update`), or with a website key that can change websites:
>
> ```bash theme={null}
> sites accounts <your website> --sign-in on --passwords on
> ```
>
> `sites accounts <your website>` alone shows how they stand. See [Build with Claude](https://docs.superintern.ai/websites/build-with-claude.md).

You don't need to republish after switching it on or off: your website follows the switch within a minute. Switching it off signs everyone out.

## What customers can do in My account

* See their name, email and **Your orders**, with each order's status.
* **Sign out**, or **Sign out on all devices**.
* **Download my data**, a copy of everything their account holds.
* **Close my account**. They're signed out everywhere and you get a request in your inbox to delete their details. Their record stays in People until you act on it, since you may need it for an invoice.

## Managing customers

The **Customer accounts** section lists everyone with an account and when they last signed in. Click **Remove** to end someone's account on that website; they stay in your People.

A customer is also signed out when you change their email, merge them into another person, or delete them.

## Privacy

* The page never reveals whether an email address already has an account.
* Codes, passwords and email addresses used for signing in are stored only in a protected (hashed) form.
* Passwords are typed on SuperIntern's own sign-in pages on your domain, which no script on your website can read.
* With Google or Microsoft, your website only learns the customer's name and verified email address. It never sees their Google or Microsoft password.
* The sign-in cookie can't be read by scripts on the page.
* Repeated attempts are rate-limited, so codes can't be guessed.
* The sign-in page tells customers: *"Signing in keeps your name and email in our customer records."*

## Your website chat and orders

When a signed-in customer opens your website chat, they can ask about **their own** orders and bookings, such as *"Has my order been paid?"* The chat can only read that customer's own orders, and it can't change or cancel anything. A guest who asks is invited to sign in first.

## For builders

* Use the site's pages and the site kit's parts: `/sign-in` and `/account` (keep both `noindex`), `<SignIn next="/…">`, `<AccountLink>`, `<SignedIn>` / `<SignedOut>`, and `getVisitor()` from `@superintern/site-kit/account-client` (`@/lib/account-client` on a site made before the kit).
* `<SignIn>` already holds the **Continue with Google** and **Continue with Microsoft** buttons. They stay hidden until the owner switches them on, so there's nothing to build or show yourself. `getVisitor()` answers `{enabled, person, providers}`.
* Sign-in has no setting in `site.config.ts`. It follows the owner's switch, and the parts render nothing while it's off.
* Don't link to `/sign-in` or `/account` from your own pages while sign-in is off. The `site_table_list` tool tells you whether it's on.
* `<SignedIn>` only hides content on the page. Never put anything private inside it.
* Never build your own sign-in, and never put a password field on a page: the upload check refuses it. When the owner allows passwords, `<SignIn>` and My account link to the platform's password pages (`/_v/auth/password/sign-in`, `forgot`, `change`) by themselves; to link to one yourself, use `passwordPage("sign-in" | "forgot" | "change", next, lang)` from the same module. `getVisitor()` also says whether passwords are on (`password`) and whether the customer has one (`person.hasPassword`).
* Never handle the session cookie or token yourself.
* Switching sign-in on, and passwords, Google or Microsoft sign-in, are the owner's steps: tell them where to find them.

The endpoints, on the site's own domain, are under `/_v/auth/`: `code`, `verify`, `me`, `sign-out`, `sign-out-everywhere`, `export`, `close` and `chat-grant`. The kit's `account-client` calls them for you.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.