diff --git a/apps/browser/src/fido2/content/page-script.ts b/apps/browser/src/fido2/content/page-script.ts index f53aa0a2d4f..ca8d5915446 100644 --- a/apps/browser/src/fido2/content/page-script.ts +++ b/apps/browser/src/fido2/content/page-script.ts @@ -20,12 +20,13 @@ if (!browserNativeWebauthnSupport) { throw new Error("Webauthn not supported in this browser."); }, }; - window.PublicKeyCredential = class { + window.PublicKeyCredential = class PolyfillPublicKeyCredential { static isUserVerifyingPlatformAuthenticatorAvailable() { return Promise.resolve(true); } } as any; - window.AuthenticatorAttestationResponse = class {} as any; + window.AuthenticatorAttestationResponse = + class PolyfillAuthenticatorAttestationResponse {} as any; } catch { /* empty */ }