Skip to content

feat(web-demo): add login flow and rework PasskeyDemo UI#8713

Closed
derranW26 wants to merge 2 commits intomasterfrom
WCN-188/passkey-demo-login-rework
Closed

feat(web-demo): add login flow and rework PasskeyDemo UI#8713
derranW26 wants to merge 2 commits intomasterfrom
WCN-188/passkey-demo-login-rework

Conversation

@derranW26
Copy link
Copy Markdown
Contributor

@derranW26 derranW26 commented May 7, 2026

Summary

  • Replace access-token-based SDK initialization with a proper login flow (authenticate + unlock) using WebCryptoHmacStrategy + IndexedDbTokenStore for browser-compatible HMAC auth
  • Rework PasskeyDemo UI to map 1:1 to passkey-crypto SDK functions with explicit inputs per parameter
  • Add split passkey selection buttons ("Select for Attach" / "Select for Remove"), colored activity log, and wallet keychain fetching for webauthnDevices display

Test plan

  • yarn lint passes
  • Login with email/password/OTP on staging → SDK initialized, panels load
  • Register a passkey → appears in Registered Passkeys panel
  • Select wallet + passkey → Attach Passkey succeeds
  • Derive PRF Key → returns hex-encoded passphrase
  • Remove from wallet / Remove from account work independently

TICKET: WCN-194

- Register, attach, derive PRF key, send funds, remove passkey flows
- Right-column panels: registered passkeys + associated wallets with refresh
- Quick-action buttons to select passkey/wallet for attach/remove steps
- Config fields (env, enterpriseId, coin) persisted to localStorage
- Coin registered via coinFactory before SDK use
- Staging environment option added

TICKET: WCN-188
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 7, 2026

WCN-188

Replace access-token-based initialization with a proper login flow
using WebCryptoHmacStrategy + IndexedDbTokenStore for browser-compatible
HMAC auth. Rework the UI to map 1:1 to passkey-crypto SDK functions
with explicit inputs, split passkey selection buttons, colored activity
log, and wallet keychain fetching for webauthnDevices display.

TICKET: WCN-188
@derranW26 derranW26 force-pushed the WCN-188/passkey-demo-login-rework branch from 736f625 to 4b30c68 Compare May 7, 2026 19:15
@derranW26 derranW26 closed this May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant