Skip to content

Commit

Permalink
add 0x to x & y
Browse files Browse the repository at this point in the history
  • Loading branch information
peterferguson committed Mar 17, 2024
1 parent 13ba396 commit 47bcc78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/helpers/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ export const getXandY = async (pk: CryptoKey) => {

const yBuffer = toBuffer(jwkKey.y, "base64");

return { x: fromBuffer(xBuffer, "hex"), y: fromBuffer(yBuffer, "hex") };
return {
x: `0x${fromBuffer(xBuffer, "hex")}`,
y: `0x${fromBuffer(yBuffer, "hex")}`,
};
};

0 comments on commit 47bcc78

Please sign in to comment.