summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-06-17 22:43:37 -0700
committerMatthew Miller <matthew@millerti.me>2022-06-17 22:43:37 -0700
commitd11de5a7240cd81739d6f3deae25ec9966cde90c (patch)
treecb4b64d61ef609f30930f86d4b89d08526b76af5 /packages/browser/src
parent524e7f881624f36aa17f406bb25fa23d02449652 (diff)
Add new supportBrowserAutofill arg
Diffstat (limited to 'packages/browser/src')
-rw-r--r--packages/browser/src/methods/startAuthentication.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/browser/src/methods/startAuthentication.ts b/packages/browser/src/methods/startAuthentication.ts
index ee401a1..a08e3a3 100644
--- a/packages/browser/src/methods/startAuthentication.ts
+++ b/packages/browser/src/methods/startAuthentication.ts
@@ -14,10 +14,13 @@ import { identifyAuthenticationError } from '../helpers/identifyAuthenticationEr
/**
* Begin authenticator "login" via WebAuthn assertion
*
- * @param requestOptionsJSON Output from @simplewebauthn/server's generateAssertionOptions(...)
+ * @param requestOptionsJSON Output from **@simplewebauthn/server**'s generateAssertionOptions(...)
+ * @param supportBrowserAutofill Initialize conditional UI to enable logging in via browser
+ * autofill prompts
*/
export default async function startAuthentication(
requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON,
+ supportBrowserAutofill = false,
): Promise<AuthenticationCredentialJSON> {
if (!browserSupportsWebauthn()) {
throw new Error('WebAuthn is not supported in this browser');