Handle undefined PublicKeyCredential
in browserSupportsWebAuthnAutofill
helper
#544
Milestone
PublicKeyCredential
in browserSupportsWebAuthnAutofill
helper
#544
Describe the issue
Currently, calling the
browserSupportsWebAuthnAutofill
helper on a browser without webauthn support will cause an error since it is trying to evaluateisConditionalMediationAvailable
ofundefined
.The helper should check whether
PublicKeyCredential
is defined first and resolve false if it isn't, similar to theplatformAuthenticatorIsAvailable
helper.Code Samples + WebAuthn Options and Responses
Error message:
iOS:
undefined is not an object (evaluating 'e.isConditionalMediationAvailable')
Android:
Cannot read properties of undefined (reading 'isConditionalMediationAvailable')
SimpleWebAuthn Libraries
The text was updated successfully, but these errors were encountered: