Skip to content

Commit

Permalink
window.crypto -> crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
peterferguson committed Mar 17, 2024
1 parent ececb56 commit 13ba396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helpers/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const importPublicKeyAsCryptoKey = async (
};

export const getXandY = async (pk: CryptoKey) => {
const jwkKey = await window.crypto.subtle.exportKey("jwk", pk);
const jwkKey = await crypto.subtle.exportKey("jwk", pk);

if (!jwkKey.x || !jwkKey.y) throw new Error("No x and y in jwkKey");

Expand Down

0 comments on commit 13ba396

Please sign in to comment.