Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Oct 31, 2024
1 parent fb928a2 commit 87d149c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/protocol-kit/src/utils/passkeys/PasskeyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ const sign = async (
}

const { authenticatorData, signature, clientDataJSON } = assertion.response
console.log('sign (authenticatorData)', authenticatorData)
console.log('sign (signature)', signature)
console.log('sign (clientDataJSON)', clientDataJSON)

return encodeAbiParameters(parseAbiParameters('bytes, bytes, uint256[2]'), [
toHex(new Uint8Array(authenticatorData)),
extractClientDataFields(clientDataJSON),
Expand Down Expand Up @@ -166,8 +164,6 @@ function decodeClientDataJSON(clientDataJSON: ArrayBuffer): string {
result += String.fromCharCode(uint8Array[i])
}

console.log('decodeClientDataJSON', clientDataJSON, result)

return result
}

Expand All @@ -184,7 +180,6 @@ function decodeClientDataJSON(clientDataJSON: ArrayBuffer): string {
*/
function extractClientDataFields(clientDataJSON: ArrayBuffer): Hex {
const decodedClientDataJSON = decodeClientDataJSON(clientDataJSON)
console.log('extractClientDataFields (decodedClientDataJSON)', decodedClientDataJSON)

const match = decodedClientDataJSON.match(
/^\{"type":"webauthn.get","challenge":"[A-Za-z0-9\-_]{43}",(.*)\}$/
Expand Down

0 comments on commit 87d149c

Please sign in to comment.