feat: use accounts SDK for demo connectors#216
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
e9d24b5 to
32c938c
Compare
32c938c to
1f5183b
Compare
Replace wagmi/tempo's webAuthn + KeyManager with accounts/wagmi's webAuthn connector for all interactive demos. This switches the docs site to use the official accounts SDK (tempoxyz/accounts) for wallet connection in demo components. - Add accounts@^0.4.7 dependency - Update wagmi.config.ts to import webAuthn from accounts/wagmi - Simplify connector config: authUrl replaces KeyManager.http, rpId is now server-side only - Add accounts to minimumReleaseAgeExclude in pnpm-workspace.yaml
- type: 'sign-up' → method: 'register' - type: 'sign-in' → method: 'login' - label → name
Per SDK author guidance, use the simpler tempoWallet() connector with no config. Updates all connector ID references from 'webAuthn' to 'xyz.tempo' (the default rdns for tempoWallet).
tempoWallet() uses an iframe dialog which doesn't work with Playwright's CDP virtual authenticator. Switch back to webAuthn() from accounts/wagmi with authUrl, which handles WebAuthn directly in-browser and is compatible with E2E tests.
1f5183b to
3980e91
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
Switches the docs site's interactive demo components from
wagmi/tempoto the officialaccountsSDK for wallet connection.