has_created_password field of user_metadata says whether the login has one, and every surface
reads it from verify-email and profile/me.
Status. Create and change ship in PR #1960 (merged into develop on 2026-11-05) with 2026.11.3, with no
flag. The exit check is MT-07 and MT-08 on iOS and Android, plus the portal Playwright suites.
The rule: 4 of 5 plus confirmation
One rule for the API, MaihueGO, horizon-authenticate and the portal (lib/endpoint/auth/shared/password-rules.ts, MIN_PASSWORD_REQUIREMENTS = 4). The password must meet
at least four of these five criteria:
Every screen also asks to confirm the password (the confirmation is checked client side). Other
bounds: GoTrue rejects fewer than 6 characters and MaihueGO accepts up to 72.
Where it is created or changed
- MaihueGO
- Customer portal
- Fixed yellow alert at the top of Home, with no close button, while the login has no password: «Crea tu contraseña», «Así también podrás ingresar con tu correo y contraseña.» and the «Crear» button.
- «Crear» opens a bottom sheet with «Contraseña», «Confirma tu contraseña» and the 4-of-5 indicator. It does not show the e-mail. The «Crear contraseña» button turns into «Creando contraseña» and ends with «Contraseña creada».
- Settings shows «Crear contraseña» or «Cambiar contraseña», as the case may be.
- Change opens a sheet with the current password, the new one and the confirmation, plus the «Cerrar sesión en los demás dispositivos» checkbox, unchecked by default. Success: «Contraseña actualizada».
hasCreatedPasswordlives in the session store (no longer hardcoded totrue) and is refreshed fromprofile/me.
Step by step: create
1
The person opens the form
From the Home alert or Settings (app), or from the banner or Mi cuenta › Seguridad (portal).
2
Types and confirms
The indicator marks the criteria met; the button is enabled with 4 of 5 and a matching
confirmation.
3
The API stores it
POST /api/v3/auth/password reuses setUserPassword and answers
{ has_created_password: true }. The auth.password.created e-mail is sent.4
The app and the portal update
The alert or banner disappears and Settings switches to «Cambiar contraseña». From then on the
person can also sign in with e-mail and password.
409; the client refreshes profile/me and
offers to change it.
Endpoints
Once Supabase holds the new password, the change stands and the
auth.password.changed e-mail is always
sent. If a revocation step fails after that, the API answers 503 password-changed-revocation-failed
with password_changed: true and sessions_revoked (false when a revocation failed): the person signs
in again with the new password, and changes it again to retry the revocation. MaihueGO and the portal
still show this answer as a generic error.
With revocation on, the device that made the change stays signed in with the new JWT. While the
answer is on its way, MaihueGO ignores a «token revoked» 401 on the old token, so a background
request cannot sign the device out (password D-07).
Security e-mails
They are in the security category: they cannot be opted out of and ignore quiet hours.
Recovery
1
Forgot password
In the app or at
auth.bbrands.io/<locale>/auth/recovery-account, the person types their e-mail
and POST /api/v3/auth/recovery-account is called.2
The API decides what to send
- Login with a password: Supabase reset e-mail, pointing to
SUPABASE_AUTH_RECOVERY_PASSWORD_REDIRECT_TO. - Login without a password: the sign-in magic link.
- Unknown or unconfirmed e-mail: nothing is sent.
{ success: true } and the same message.3
Reset
The
auth/reset-password page sends the token and the new password to
POST /api/v3/auth/reset-password, with the 4-of-5 rule.
Recovery also resets the failed-attempt lockout counter.