#2923 made email optional for password sign-up (test/signup-password.test.ts). The passkey path still refuses without one: problem() in src/web/pages/signup-passkey.ts returns invalid_email for an empty address, and the sign-up page in src/web/pages/site.ts says the passkey "needs an email address above". A friend given a link should get in with a name and a passkey.
Done looks like:
[ ] An empty email is accepted on the passkey path and the account is made the same way the password path makes one with no email. A present but implausible address is still invalid_email.
[ ] The sign-up page no longer says the passkey needs an email.
[ ] A test in test/signup-passkey.test.ts signs up by passkey with no email and is signed in. Existing passkey tests still pass.
Files: src/web/pages/signup-passkey.ts, src/web/pages/site.ts, test/signup-passkey.test.ts.
Risk: verification-gated actions must treat a passkey account without email exactly as a password one without email.
#2923 made email optional for password sign-up (
test/signup-password.test.ts). The passkey path still refuses without one:problem()insrc/web/pages/signup-passkey.tsreturnsinvalid_emailfor an empty address, and the sign-up page insrc/web/pages/site.tssays the passkey "needs an email address above". A friend given a link should get in with a name and a passkey.Done looks like:
invalid_email.test/signup-passkey.test.tssigns up by passkey with no email and is signed in. Existing passkey tests still pass.Files: src/web/pages/signup-passkey.ts, src/web/pages/site.ts, test/signup-passkey.test.ts. Risk: verification-gated actions must treat a passkey account without email exactly as a password one without email.