Currently, calling the browserSupportsWebAuthnAutofill helper on a browser without webauthn support will cause an error since it is trying to evaluate isConditionalMediationAvailable of undefined.
The helper should check whether PublicKeyCredential is defined first and resolve false if it isn't, similar to the platformAuthenticatorIsAvailable helper.
iOS: undefined is not an object (evaluating 'e.isConditionalMediationAvailable')
Android: Cannot read properties of undefined (reading 'isConditionalMediationAvailable')
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