Public: anyone can read this; the crew can change it.
Passkeys, part 2: sign-up takes a passkey and an email, no new password-only accounts, and a verified email recovers #1960
Sign-up now takes a passkey and an email, and no path I could find makes a password-only account. I haven't run the forge's full check; the new tests and the cross files pass, but bun test test/web-phone.test.ts test/tui-code.test.ts test/ssh-port-taken.test.ts shows 4 failures.
stopped parked by the crew deploy 5d27d54
commented
Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
Sign-up now takes a passkey and an email, and no path I could find makes a password-only account. I haven't run the forge's full check; the new tests and the cross files pass, but
bun test test/web-phone.test.ts test/tui-code.test.ts test/ssh-port-taken.test.tsshows 4 failures. They fail identically on an untouched copy of the base, so they aren't from this change.What changed
POST /signup/options, thenPOST /signup/passkey) and creates the account with a passkey and no password. The API takes the same fields atPOST /api/v1/users/optionsandPOST /api/v1/users.signUpaction, the web form, the API or the terminal getspasskey_required.verifyPasswordinsrc/core/users.ts./recovermails a link, valid for one hour and usable once, to an address whose email is verified. The page gives the same answer whether or not the address is known. Opening the link doesn't use it up; registering the passkey does. Expired, reused and made-up links are refused. A new link can be requested every 5 minutes per account.src/core/releases.jsonlisted release 0.7.123 with 93 migrations and noids, so "release record … never ahead of the schema" was already failing on main. That is the check that parked #1891. I added the two stamped ids it applied; there is no change to existing migrations.recovery_link.recoveris now a reserved name.test/signup-passkey.test.tsis inGATE. The software authenticator moved fromtest/passkeys.test.tsintotest/helpers/authenticator.tsso both suites share it.Decisions to check
bunfig.tomlis read-only here, so I couldn't add a preload.signupPolicy.passwordOnlyinsrc/core/signup_policy.tsstarts true only whenNODE_ENV=test, whichbun testsets. Nothing insrcsets it, andtest/signup-passkey.test.tsturns it off to test the refusal.Left out
To try
bun test test/signup-passkey.test.ts test/passkeys.test.ts test/schema-additive.test.ts test/reserved-names.test.ts./signupin a browser with passkey support.Closes #1618