Sign in with Face ID, Touch ID, Windows Hello or a security key, keeping
email + password as the primary method.
- API: BetterAuth passkey plugin deriving rpID/origin from WEB_APP_URL
(the browser origin), with residentKey "required" because sign-in is
username-less. New Passkey model mapped to the passkeys table.
- Web: conditional UI in the email field plus an explicit "Entrar con
passkey" button; cancelled ceremonies are ignored.
- Settings: create, rename and delete passkeys with TanStack Query.
- Pin @better-auth/passkey to 1.7.7: its peers lock better-call, so
newer versions break the API.
Enable BetterAuth's emailOTP plugin for password resets: a 6-digit code,
valid for 10 minutes with 3 attempts, stored hashed in `verifications`
(no migration). The code goes out through the existing Resend mailer with
a new Spanish template, and other sessions are revoked after the reset.
The web app gets a two-step /forgot-password route (request the code,
then set the new password) linked from sign-in. Unknown emails get the
same responses as known ones so the form doesn't reveal accounts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cream shopping bag with a check on the app's green replaces the black
"SL" placeholder: favicon, iOS home-screen icon, PWA icons (with a maskable
version that keeps the bag inside the safe zone) and an AppLogo component
shown in the sidebar and above the sign-in and sign-up forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>