From 5a5b5a3bdf7c709493fc9e63f0f02eed99f25baf Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 4 Jul 2022 08:01:14 -0700 Subject: Rename supportBrowserAutofill --- packages/browser/src/methods/startAuthentication.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/methods/startAuthentication.ts b/packages/browser/src/methods/startAuthentication.ts index a568289..7887228 100644 --- a/packages/browser/src/methods/startAuthentication.ts +++ b/packages/browser/src/methods/startAuthentication.ts @@ -17,12 +17,12 @@ import { webauthnAbortService } from '../helpers/webAuthnAbortService'; * Begin authenticator "login" via WebAuthn assertion * * @param requestOptionsJSON Output from **@simplewebauthn/server**'s generateAssertionOptions(...) - * @param supportBrowserAutofill Initialize conditional UI to enable logging in via browser + * @param useBrowserAutofill Initialize conditional UI to enable logging in via browser * autofill prompts */ export async function startAuthentication( requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON, - supportBrowserAutofill = false, + useBrowserAutofill = false, ): Promise { if (!browserSupportsWebauthn()) { throw new Error('WebAuthn is not supported in this browser'); @@ -49,7 +49,7 @@ export async function startAuthentication( * Set up the page to prompt the user to select a credential for authentication via the browser's * input autofill mechanism. */ - if (supportBrowserAutofill) { + if (useBrowserAutofill) { if (!(await browserSupportsWebAuthnAutofill())) { throw Error('Browser does not support WebAuthn autofill'); } -- cgit v1.2.3