-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add bindings for Multi-Factor Authentication (Phone) (#932)
## What kind of change does this PR introduce? Adds the bindings for MFA (Phone) Client library. In particular, add - Enroll - now allows for enrollment of Phone Factors - Challenge for Phone - now takes in a channel - List Factors - now supports access of Phone factors ### TODOS: - [x] Remove empty `totp` from response field on enroll response ### Not addressed yet - `challengeAndVerify` will currently return an error on the `verify` step when used with a phone factor. We could introduce an alternate behaviour (e.g. terminating at the `challenge` step gracefully) since we have the `type` of the challenge-associated-factor in the response. This is not addressed in this PR
- Loading branch information
Showing
2 changed files
with
61 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters