feat: MFA APIs#2502
Conversation
…into feat/mfa-apis
…n update logic to mfaVerify in auth-client, simplify impl
… oobchannel, oobcode, bindingmethod and barcodeUri
This reverts commit b418b01.
| mfaToken, | ||
| authenticatorTypes: ["oob"], | ||
| oobChannels: ["email"], | ||
| email: "[email protected]" |
There was a problem hiding this comment.
@tusharpandey13 enrolment signatures are slightly different from spa
https://github.com/auth0/auth0-spa-js/blob/main/EXAMPLES.md?plain=1#L890
For enrolment we are not accepting oobChannels: ["email"], in array notation, rather a simplified factorType which internally calculates oobChannel.
You can refer the above code snippet.
There was a problem hiding this comment.
I agree, factorType simplifies this flow.
Proposing to take this change in a separate PR.
|
A change that adds support for |
The base branch was changed.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2502 +/- ##
==========================================
- Coverage 90.98% 90.15% -0.84%
==========================================
Files 40 51 +11
Lines 4916 6439 +1523
Branches 1024 1292 +268
==========================================
+ Hits 4473 5805 +1332
- Misses 437 623 +186
- Partials 6 11 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Important
This PR is the 2nd PR in a PR stack
Current base: #2480
Adds MFA API support, enabling
getAuthenticators,enroll,challengeandverifyfunctionality.Changes
MfaClientclasses for server and clientgetAuthenticators,enroll,challengeandverifyTests
Added flow tests testing all MFA flows for server and client.
Usage