auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

fix: add MFA for WebAuthn bindings

Open J0 opened this issue 1 year ago • 0 comments

What kind of change does this PR introduce?

We introduce bindings for MFA (WebAuthn) which consists of the following:

  1. enroll() a. Single Step - enroll({factorType: 'webauthn'}) b. Multi-Step - enroll(factorType: 'webauthn, webAuthn{...})
  2. challenge() -
  3. verify() a. Single Step - verify({factorType: 'webauthn'}) b. Multi-Step - verify({factorType: 'webauthn', webAuthn{..}})

We also expose a few helper methods:

  • identifyAuthenticationError
  • browserSupportsWebAuthn

J0 avatar Sep 19 '24 07:09 J0