# Sign up without a password

- Sentence the person signs: Open a Tally account with your verified email
- Kind of approval: Sign up and sign in
- Who decides: A freelancer
- Service: Tally, an invoicing app
- Level: L1
- Capability: account:create
- State: Implemented and tested, not shown on the demo

A freelancer tells their agent: "Sign me up for Tally and send last month's invoices from there." Today the agent would fill a form, invent a password and read the confirmation email in the person's inbox. Or it would stop and hand the job back.

## What happens

1. The agent calls Tally's sign-up route. Tally needs an email for the account, so it creates the approval itself, with the attribute it asks for, and answers `401` with a link and a code.
2. The freelancer opens the link and checks the code. The page shows Tally's sentence and the one attribute Tally asks for: the email address, with its purpose ("Sending your invoices and receipts") and how long Tally keeps it. The freelancer signs with a passkey.
3. The home node encrypts the email to Tally's key. The grant carries a hash of it, so the signature covers exactly what was shared.
4. The agent retries. Tally verifies the grant, opens the account under the freelancer's id for Tally, and decrypts the email.
5. The agent goes on with the task. Sending invoices is a new kind of action, so it asks for its own approval.

## What each side holds afterwards

| Side | Holds |
|---|---|
| Freelancer | The approval in their wallet, with a receipt of the email shared |
| Agent | The account number. It never sees the email or a password, because there is none |
| Tally | An account bound to an id only Tally sees, a verified email, and a signed record of consent |

## What cannot happen

- **Two services link the person.** Each service sees a different id for the same person. Tally and another app cannot match their users by it.
- **The agent reads the email.** It is encrypted to the key Tally publishes on its own domain, never to a key named in the request.
- **Tally asks for more on the quiet.** A service can ask only for attributes it declares publicly, each with a purpose and a retention period. The page shows every one, and the person can untick the optional ones.
- **A password to leak.** The agent's later calls carry grants, not a stored secret.

## Why level 1

An email address checked by the person's home node is a level 1 attribute. A service that must know the legal name, for example to open a bank account, asks for it at level 2, and the page verifies the person's identity once before they sign.

Source: https://allowedby.com/use-cases/sign-up
