Skip to content

feat(sdk-core): WCN-187 add passkey types, webauthn provider interface, and prf helpers#8609

Closed
derranW26 wants to merge 7 commits into
masterfrom
WCN-187
Closed

feat(sdk-core): WCN-187 add passkey types, webauthn provider interface, and prf helpers#8609
derranW26 wants to merge 7 commits into
masterfrom
WCN-187

Conversation

@derranW26
Copy link
Copy Markdown
Contributor

Summary

  • Adds PasskeyDevice, PasskeyAuthResult, and WebAuthnProvider types to modules/sdk-core/src/bitgo/passkey/types.ts
  • Adds buildEvalByCredential — maps credId → prfSalt for WebAuthn PRF evalByCredential object
  • Adds matchDeviceByCredentialId — resolves a WebAuthn assertion's credential ID back to its PasskeyDevice, throws descriptively if not found
  • Unit tests for both PRF helpers (happy path + error cases)

Depends on

  • WCN-186 (@bitgo/passkey-crypto) must be merged first — this PR imports PasskeyDevice types that downstream tickets (3–7) will use alongside derivePassword/deriveEnterpriseSalt from that package

Notes

  • WebAuthnProvider targets browser only (PublicKeyCredential types) — no Node.js or React Native
  • No any types

@linear
Copy link
Copy Markdown

linear Bot commented Apr 22, 2026

…rf helpers

- PasskeyDevice, PasskeyAuthResult, WebAuthnProvider types in passkey/types.ts
- buildEvalByCredential: maps credId → prfSalt for WebAuthn PRF evalByCredential
- matchDeviceByCredentialId: finds device by asserting credential ID, throws descriptively
- Unit tests for both PRF helpers (happy path + not-found cases)

TICKET: WCN-187
Resolve conflict in modules/express/src/typedRoutes/api/v1/encrypt.ts —
accept master rename from api/common/ to api/v1/ (WP-7280, no passkey changes).

TICKET: WCN-187
@derranW26 derranW26 changed the title feat(sdk-core): WCN-187 add passkey types, WebAuthnProvider interface, and PRF helpers feat(sdk-core): WCN-187 add passkey types, webauthn provider interface, and prf helpers Apr 22, 2026
@derranW26 derranW26 closed this Apr 22, 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