This section explains, step by step, how a person creates their access, signs in and keeps their
session in MaihueGO (iOS and Android) and in the web apps, and how all of it is operated in each
environment. It is written for release 2026.11.3. The internal documentation, with
requirements, decisions and status, lives in
docs/initiatives/authenticate/
and the stable definition of the domain in
docs/definitions/authentication.md.What the domain covers
Theauthenticate domain (ADR 0131) groups everything related to getting into the platform:
registration by e-mail or with a provider, sign-in with a password, a provider or a magic link,
optional passwords, sessions and SSO between apps, linking logins to an account, the holding’s
identity provider (IdP), machine authentication, auth events and security hardening. The identity
engine today is Supabase Auth (GoTrue); horizon-api wraps it and issues its own internal JWT
(Horizon JWT).
How authentication fits together
Key words
These words have a precise meaning across the whole domain. Use them this way in code, tickets and conversations with support.The clients and what each one does
The pages of this section
E-mail-first sign-in
E-mail first on every surface:
verify-email, the route table and password sign-in.Registration
E-mail and provider registration, verification, required data and account migration.
Google, Apple and Microsoft
Per-platform behaviour, per-provider flags, contracts and limits.
Apple: tokens and notifications
Client secret, encrypted refresh token, revocation on account deletion and Apple notifications.
Magic link
The sign-in link for logins without a password and the portal activation link.
Password
Optional password: create, change, recover and the 4-of-5 rule.
Identity linking
A pending login that links to the account owning its document.
Session
Horizon JWT, sign-out, per-environment cookie and SSO handoff.
Platform
The holding’s IdP, machine authentication, auth events and the sign-in shell.
Security
Rate limits, lockout, environment switches and accepted risks.
Rollout
What to configure in each environment, in order, up to the mandatory release.
Operations and maintenance
Rotations, rollback and day-to-day diagnosis.
What changes in 2026.11.3
Everything ships in a single PR (#1960, labellarge-change):
- Sign in with Apple comes back, after the App Review rejection under guideline 4.8: native on iOS and through the browser with a Services ID on Android and the web (ADR 0135).
- Provider registration asks for no password (ADR 0132). The password is optional and offered later: Home alert and Settings in the app, banner and Mi cuenta › Seguridad in the portal.
- One flag per provider for every platform:
authenticate-oauth-google,authenticate-oauth-appleandauthenticate-oauth-microsoft, categoryauthenticate, off by default (ADR 0133, supersedes ADR 0048). The oldmaihuego-application-oauth-*keys are deleted. - Sign-in starts with the e-mail everywhere:
POST /api/v3/auth/verify-emailreturnsprovidersandhas_created_password(ADR 0134). - Sign-in magic link for logins without a password: one hour, single use, resend after 60 seconds. “Forgot password” without a password sends it too.
- Apple token lifecycle: refresh token stored encrypted, revoked on account deletion, and an endpoint for Apple’s server-to-server notifications.
- Pending login linking: a provider sign-in blocked by a document conflict links, with a code, to the account that owns the document (ADR 0136).
- Every login records
user_metadata.provideranduser_metadata.is_private_email. - Production launch values: Google on, Apple on, Microsoft off. The release becomes mandatory once it is published in both stores.
- The documentation is consolidated: categories
auth,idp,oauthandhorizon-authenticatebecome categoryauthenticate, with 13 initiatives (ADR 0131).
Pending. As of 2026-11-04 every 2026.11.3 task was merged in PR #1960, not merged. The manual
test table MT-01 to MT-11 is pending, and turning the flags on in production, the App Review
submission and the mandatory release (T-15 to T-17) are still to do.
Status per capability
Progress percentages from each initiative’stracker.yml as of 2026-11-04. When the last audit is
older, its date is shown.