-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix + Refactor: improve verify otp flows (#1295)
* fix: dont start transaction if input is invalid * refactor(verifyOtp): dont start transaction if not needed + reduce code * fix: typo in comment * feat(verifyOtp): stop using transactions * feat(verifyOtp): remove lock:true from findOne() * feature(verifyOtp): reduce code by optimizing the query * fix: ensure incrementing attempts os robust against race conditions
- Loading branch information
Showing
1 changed file
with
126 additions
and
172 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