Commit 1aa502f
committed
feat(sdk-core): add webauthnInfo param to AddKeychainOptions for atomic passkey attachment
The backend POST /api/v2/:coin/key handler reads `req.body.webauthnInfo` (single object)
to atomically attach a passkey during key creation, but the SDK only sent
`webauthnDevices` (array) which the backend ignores. This caused passkey attachment to
require a separate best-effort PUT call that could fail, leaving wallets in an
inconsistent state.
Add `webauthnInfo` field to `AddKeychainOptions` and pass it through in `keychains.add()`
so callers can atomically link a passkey to a keychain during creation.
Deprecate `webauthnDevices` on `AddKeychainOptions` since the backend never reads it
on the POST path.
WCN-1271 parent 232ea03 commit 1aa502f
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
0 commit comments