auth-js
auth-js copied to clipboard
fix: add MFA for WebAuthn bindings
What kind of change does this PR introduce?
We introduce bindings for MFA (WebAuthn) which consists of the following:
enroll()a. Single Step -enroll({factorType: 'webauthn'})b. Multi-Step -enroll(factorType: 'webauthn, webAuthn{...})challenge()-verify()a. Single Step -verify({factorType: 'webauthn'})b. Multi-Step -verify({factorType: 'webauthn', webAuthn{..}})
We also expose a few helper methods:
identifyAuthenticationErrorbrowserSupportsWebAuthn