# Visitor sign-in

URL: https://docs.xodia.ai/apps/sign-in
Last updated: 2026-11-25

Visitor sign-in lets people make an account on your site and see pages and entries meant only for them. Turn it on in the Xodia database, then add the sign-in pieces to your pages.

## Ways to sign in

| Way | How it works |
| --- | --- |
| Email and password | People make an account with their email and a password. Forgot your password sends a reset code by email. |
| A code sent by email | People type their email and get a 6-digit code. It works for 10 minutes and 5 tries. |
| Google Coming soon | People sign in with their Google account. |

## Turn on sign-in

1. Open the Xodia database

   Choose Content, then Database. If your site has no database yet, turn on the [Xodia database](https://docs.xodia.ai/apps/xodia-database) first.
2. Choose Turn on sign-in

   It is in the Sign-in box under your tables. Pick the ways people sign in.
3. Choose who can make an account

   Anyone can make an account, or Only people you add. With Only people you add, you add each person in Signed-in people, and they sign in with a code sent by email or set a password with reset.
4. Set the shortest password

   With email and password, choose how many characters a password needs at least.

To change these later, choose Change in the Sign-in box. Your AI can change them too.

## Email keys for codes and password reset

Email codes and password reset go out through your own email service, with its key. Add these three in Project settings, Keys and secrets. They are the same keys the [Send an email](https://docs.xodia.ai/server-tasks/send-email) task uses, and sign-in works with them whether or not your site runs server tasks.

| Key | What to add |
| --- | --- |
| `EMAIL_KEY`, a secret | A key from your email service that can send email. Under Which service is it for?, check it shows your service's host. |
| `EMAIL_API_URL`, a setting | The full address your email service sends to, from its API guide, starting with `https://`. |
| `EMAIL_FROM`, a setting | The sender on each email, an address or domain you verified at your email service. |

Xodia sends each email as JSON with `from`, `to`, `subject` and `text`, with the key as a Bearer header, the way most email services take it. Step by step: [Keys to add](https://docs.xodia.ai/server-tasks/send-email#keys).

> **Note:** Without these keys, email codes can't be sent, and the Sign-in box says which key is missing. Email and password sign-in still works without them; only reset needs them.

## Add sign-in to your pages

- **Sign-in pieces:** Sign in, Create account, Reset password and an Account menu are in the Add panel. Drop one on a page and style it like anything else.
- **Pages for signed-in people:** in a page's settings, turn on Only for signed-in people and pick where everyone else goes. Those pages stay out of search engines.
- **Parts for some people:** show a section only to signed-in people, only to visitors, or only to people with a role.
- **View as:** switch the canvas between a visitor, a test person and each role to check every view.

## Manage signed-in people

Open Signed-in people in the Database list. For each person: Roles, Block or Unblock, Sign out everywhere, or Remove. Test data and live data each have their own people: people who signed in on the canvas or preview are in test data, and people from your live site are in live data. See [Signed-in people](https://docs.xodia.ai/apps/xodia-database#people).

### Good to know

- Passwords are never stored as they are typed, and sign-in codes are kept only as a scrambled copy.
- A person signed in on one site is never signed in on another.
- Using your own Supabase instead? Sign-in then uses your Supabase project's own settings, and the same sign-in pieces work. See [Apps](https://xodia.ai/product/apps#sign-in).
