Skip to content

Commit

Permalink
fix: add missing await to two-factor unset (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Oct 19, 2021
1 parent 83280af commit 4b6878f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-countries-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@accounts/two-factor": patch
---

Add missing await to when unsetting two-factor
2 changes: 1 addition & 1 deletion packages/two-factor/src/two-factor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class TwoFactor {
window: this.options.window,
})
) {
this.db.unsetService(userId, this.serviceName);
await this.db.unsetService(userId, this.serviceName);
} else {
throw new Error(this.options.errors.codeDidNotMatch);
}
Expand Down

0 comments on commit 4b6878f

Please sign in to comment.