Skip to content

feat(sdk-core): add webauthnInfo param to AddKeychainOptions for atom…#8888

Merged
rajangarg047 merged 1 commit into
masterfrom
wcn-127/add-webauthn-info-to-add-keychain
May 29, 2026
Merged

feat(sdk-core): add webauthnInfo param to AddKeychainOptions for atom…#8888
rajangarg047 merged 1 commit into
masterfrom
wcn-127/add-webauthn-info-to-add-keychain

Conversation

@rajangarg047
Copy link
Copy Markdown
Contributor

@rajangarg047 rajangarg047 commented May 28, 2026

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-127

…ic 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-127
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

WCN-127

@rajangarg047 rajangarg047 merged commit 39239af into master May 29, 2026
22 checks passed
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.

2 participants