feat(passkey-crypto): add registerPasskey()#8637
Merged
Conversation
c4920f4 to
decca2c
Compare
decca2c to
3c9f1e8
Compare
7de643a to
d25cc70
Compare
Contributor
Author
|
@claude review this pr |
ef5ae08 to
55613a8
Compare
55613a8 to
a943cdf
Compare
mohammadalfaiyazbitgo
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://linear.app/bitgo/issue/WCN-188/implement-registerpasskey
Summary
registerPasskey()to@bitgo/sdk-core— registers a passkey at the BitGo account levelWebAuthnOtpDevice,WebAuthnProvider,PasskeyAuthResult,PasskeyGetOptions) are re-exported from@bitgo/passkey-crypto(no local stubs)passkeymodule fromsdk-core/src/bitgo/index.ts@bitgo/passkey-cryptoFlow
GET /api/v2/user/otp/webauthn/register— fetch server challenge (containsbaseSalt)provider.create()— browser returns attestationscopes: ['prf']in PUT payload; otherwise omitPUT /api/v2/user/otp— register the passkeyWebAuthnOtpDevice & { prfSupported: boolean }Acceptance criteria
baseSaltsourced from server challenge — never generated client-sideprovider.create()prfSupported: booleananytypesTest plan
prfSupported: true)prfSupported: false)provider.create()TICKET: WCN-188