From b3fb51c39a039458e7ff1adcf5879a9bc01552e6 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 25 Mar 2026 11:29:44 -0700 Subject: [PATCH] feat(encryptid): known accounts picker + passkey-first for both UIs - login-button.ts: no-known-accounts state shows passkey-first button (unscoped WebAuthn) with email magic link fallback, auto-revealed on NotAllowedError. Fix stale usernameInput ref. - server.ts (auth.rspace.online): add localStorage known accounts system. Returning users see their stored usernames as clickable buttons. handleAuth() accepts optional username for scoped auth. Saves account after successful login. renderSigninAccounts() called on page init. Co-Authored-By: Claude Opus 4.6 --- src/encryptid/server.ts | 124 ++++++++++++++++++++++++------- src/encryptid/ui/login-button.ts | 89 +++++++++++++++++----- 2 files changed, 169 insertions(+), 44 deletions(-) diff --git a/src/encryptid/server.ts b/src/encryptid/server.ts index e85def4..253767a 100644 --- a/src/encryptid/server.ts +++ b/src/encryptid/server.ts @@ -7141,21 +7141,8 @@ app.get('/', (c) => {
- -
- -
- No passkey on this device? Sign in with email -
- -
+ +