From e08155702054b960f143b3452cfdc479831eb7ad Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 20 Jun 2022 11:15:27 -0700 Subject: Perform some minor cleanup --- packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts | 2 +- packages/browser/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts index 575d2f1..ecf557e 100644 --- a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts +++ b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts @@ -17,7 +17,7 @@ export async function browserSupportsWebAuthnAutofill(): Promise { * want. I think I'm fine with this for now since it's _supposed_ to be temporary, until TS types * have a chance to catch up. */ - const globalPublicKeyCredential = PublicKeyCredential as unknown as PublicKeyCredentialFuture; + const globalPublicKeyCredential = window.PublicKeyCredential as unknown as PublicKeyCredentialFuture; return ( globalPublicKeyCredential.isConditionalMediationAvailable diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index 2b327ee..e288b7c 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -12,6 +12,6 @@ export { startRegistration, startAuthentication, browserSupportsWebauthn, - platformAuthenticatorIsAvailable, browserSupportsWebAuthnAutofill, + platformAuthenticatorIsAvailable, }; -- cgit v1.2.3