From 13ba39675f34c81589ae202ff5cda973cf05149f Mon Sep 17 00:00:00 2001 From: Peter Ferguson Date: Sun, 17 Mar 2024 00:19:16 +0000 Subject: [PATCH] window.crypto -> crypto --- packages/helpers/webauthn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/helpers/webauthn.ts b/packages/helpers/webauthn.ts index f8cd7ea..6f24375 100644 --- a/packages/helpers/webauthn.ts +++ b/packages/helpers/webauthn.ts @@ -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");