verify-email says there is no login, the client opens
registration. UI copy is quoted in Spanish, as the app shows it.
E-mail registration
- MaihueGO app
- Web (horizon-authenticate)
1
The person types their e-mail on the welcome screen and confirms it on the next step.
2
Password
They create the password with its confirmation. The rule is 4 of 5 criteria (see the note
below).
3
Verifica tu correo
The app calls
POST /api/v3/auth/register and shows the verification screen. Resend unlocks
after 60 seconds; the deadline is stored per e-mail in wall-clock time, so it holds even if
the app goes to the background.4
E-mail link
When the link is opened, the app signs in by itself (“Iniciando sesión…”) and shows “¡Ya
casi!”, with “Continuar a MaihueGO” and “Cerrar sesión”.
5
Welcome
If the person has courtesy recharges available (
courtesy_recharge_limit greater than
courtesy_recharge_used), they see “¡Tu cuenta fue creada!” with “Recarga de regalo” (opens the
QR scanner) and “Usar en otro momento”. Otherwise they go straight to Home.Password rule in the app. MaihueGO’s create-password screen enabled the button only at
“excellent” strength (all five rules, decision D-331). ADR 0132 sets 4 of 5 plus confirmation
everywhere and supersedes that decision; the app change (T-05) was merged in PR #1960.
Verification and resend
POST /api/v3/auth/registercreates the Supabase user withemail_confirm=falseand resends thesignupe-mail with theSUPABASE_AUTH_REGISTER_REDIRECT_TOtarget. If the resend fails, registration continues and only a warning is logged.POST /api/v3/auth/verify-accountconfirms the e-mail andPOST /api/v3/auth/resend-confirmationresends the link (3 per hour per e-mail). It answers200to every e-mail, unknown or already confirmed included, and only an unconfirmed login gets the e-mail.- An unconfirmed e-mail younger than 24 hours answers
409(“check the inbox”). After 24 hours the e-mail can be registered again and the login is reused. - An already confirmed e-mail answers
409.
Required data and the identity flag
Registration is progressive: the POST creates the login and the PATCH completes the profile. The account is created only with the first identifying data (type_dni and dni, or phone, or
firstname and lastname); until then the login has no account (deferred registration). A POST with
CHL_RUT, dni and a verified identity attestation creates the account right away.
The maihuego-application-registration-identity flag picks the path in the app:
- If the document already belongs to another person’s account (
CHL_RUTorCHL_PASSPORT), the app shows the conflict screen with the owner’s masked e-mail. For a provider login, that screen offers “Es mi cuenta, vincular” (see Identity linking). - Under 13: “Menor de edad” screen. The RUT hash stays blocked until the 13th birthday and the e-mail
hash for 30 days, in
registration_block(HMAC hashes are stored, never the values). dni_validatedbecomes true only with an identity attestation.
Provider registration, without a password
From 2026.11.3, registering with Google, Apple or Microsoft asks for no password (ADR 0132). The person can create one later from Home or Settings (see Password).- MaihueGO app
- Web (horizon-authenticate)
oauth/register receives the Supabase tokens and, when present, a password that must meet 4 of 5.
A password is only accepted while the login has no account: once the registration is done it
answers 409 registration-already-completed, and the password is created with
POST /api/v3/auth/password, which sends the security e-mail.
Without a password, the login gets has_created_password=false. It stores provider and
is_private_email, and answers 409 password-already-created if the login already had a password.Abandoning a registration
In a half-done provider registration, going back from “Valida tus datos” or “Iniciar sesión con otro correo” callsPOST /api/v3/auth/abandon-registration. It deletes the Supabase user only if it has
no password identity and no person account, and only after reading its metadata. Limit: 10 per 10
minutes per user.
Account migration
POST /api/v3/auth/register/migration (permission auth:register-migration) provisions accounts coming
from earlier systems without a password: account, users, metadata, roles, subscription type and
migration segment. It is idempotent by dni, type and type_dni (201 on create, 200 on update),
never deletes pre-existing auth users and never sends welcome e-mails (receive_creation_email
stays false). These accounts sign in with the magic link,
because they have neither a password nor a provider.
Endpoints
Pending. The anonymous PATCH is still allowed while the server flag
authenticate-register-anonymous-patch is true (user younger than 24 hours and without
account_user): true in every environment until 2026-11-14, when the forced app update lets it be
turned off from Horizon without a deploy.
Binding the PATCH to the session JWT is tracked in security-hardening (T-101).