mirror of
https://github.com/bitbaum/surf-your-life.git
synced 2026-12-04 06:08:23 +01:00
Surf Your Life has answered sign-in from AccountKit since this morning, through the Auth.js compat layer, with AccountKit's sign-up, recovery, passkey and two-factor endpoints closed. This finishes the move: - /[locale]/login, /register and /forgot-password render AccountKit's SignInForm, SignUpForm and recovery form in German, English or French: email and password, an email sign-in link, passkeys, two-factor, recovery, Continue with OrangeCat and the shared bitbaum sign-in, each shown when its env is set. /profile renders AccountPanel (password, passkeys, second factor, linked sign-ins, deleting the account); settings points there. - The compat layer passes screens: "accountkit" (AccountKit 0.20.0). - AccountKit is the only credential writer. Surf's own /api/auth/register, forgot-password, reset-password, change-password, verify-email and resend-verification (they would shadow AccountKit's endpoints of the same names), /api/account/delete, Auth.js, the Drizzle adapter and the Google provider are removed. - A password sign-up still gets its profile row, the welcome mail and the staff alert. The practitioner's reset link is an AccountKit reset token. - Migration 0030 (additive) makes the panel's rename and deletion reach users, deleting in the old route's order. The import attaches the trigger too. - Every imported account keeps working: same ids, bcrypt hashes through legacyBcrypt, OrangeCat links, roles on users. browser-smoke.yml now runs every way in against the standalone server and a migrated, imported PostgreSQL. It covers the method set at 320px and 390px, sign up, sign out, a wrong password and sign in. It also covers an Auth.js-era bcrypt account, a reset through the mailed link and an email sign-in link. AccountKit's real mail is caught by scripts/ci/mail-sink.cjs. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>