-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Replace TOTP_NOT_ENABLED_ERROR status and make deviceName o…
…ptional (#729) * refactor: Dont send TOTP_NOT_ENABLED_ERROR status * refactor: Add comments * chores: Remove extra comments * refactor: Completely replace totp not enabled error with unknown device error * refactor: Remove Totp not enabled error * feat: Make device name optional and generate it from number of existing devices * Replace TotpNotEnabledError with UnknownUserIdTotpError * refactor: Recursively generate device name when it already exists * refactor: Remove redundant arguments * feat: Remove the param to allow unverified devices from the verify totp API * feat: Reject unverified devices * feat: Add UNKNOWN_USER_ID_ERROR to verify totp api * feat: Throw Unknown user id error when device gets deleted during verification * fix: core fixes * fix: cleanup * fix: tests --------- Co-authored-by: Sattvik Chakravarthy <[email protected]>
- Loading branch information
Showing
22 changed files
with
431 additions
and
250 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
Oops, something went wrong.