Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
verifyBrowserAutofillInput
options to @simplewebauthn/browser'sstartAuthentication()
. When set tofalse
the method will no longer raise an error when it cannot find a suitable<input autocomplete="... webauthn">
element.Most users of this method shouldn't need to use this new flag. However projects using e.g. shadow components which contain an otherwise suitable element for conditional UI can use this new flag to benefit from
startAuthentication()
as well.Fixes #597.
Breaking Changes
startAuthentication()
now uses an option objectPositional arguments have been replaced by a single object containing all options. Keywords match the name of the previously positional arguments.
To update existing implementations, wrap existing options in an object with corresponding properties:
Before:
After:
startRegistration()
now uses an option objectPositional arguments have been replaced by a single object containing all options. Keywords match the name of the previously positional arguments.
To update existing implementations, wrap existing options in an object with corresponding properties:
Before:
After:
(It may seem premature to make this change to
startRegistration()
too, but this is in preparation for #582)