cdb8aed8a54a
add diagnostic log for passkey get assertions to surface any handler-side issues
- time
- 2026-04-28 19:26 UTC · 6 months ago
- machine
- koh2
- parent
- 4823bacb5348
↓ peach-browser-cdb8aed8.tar.gzatlas at this save
files changed1 file
src/background/passkey.ts+25 −13src/background/passkey.ts+25 −13
@@ -459,21 +459,33 @@459459 lastUsedAt: Date.now(),460460 });461461 462+ const responseJson = JSON.stringify({463+ id: match.credentialId,464+ rawId: match.credentialId,465+ type: "public-key",466+ response: {467+ clientDataJSON: base64urlEncode(clientDataJSON),468+ authenticatorData: base64urlEncode(authData),469+ signature: base64urlEncode(signature),470+ userHandle: match.userHandle,471+ },472+ authenticatorAttachment: "platform",473+ clientExtensionResults: {},474+ });475+476+ console.log("[Peach passkey] completing get assertion", {477+ rpId: match.rpId,478+ credentialId: match.credentialId,479+ algorithm: match.algorithm,480+ signCount: nextSignCount,481+ flags: flags.toString(16),482+ signatureBytes: signature.length,483+ userHandle: match.userHandle,484+ });485+462486 await chrome.webAuthenticationProxy.completeGetRequest({463487 requestId: request.requestId,464- responseJson: JSON.stringify({465- id: match.credentialId,466- rawId: match.credentialId,467- type: "public-key",468- response: {469- clientDataJSON: base64urlEncode(clientDataJSON),470- authenticatorData: base64urlEncode(authData),471- signature: base64urlEncode(signature),472- userHandle: match.userHandle,473- },474- authenticatorAttachment: "platform",475- clientExtensionResults: {},476- }),488+ responseJson,477489 });478490 }479491