accounts-js / accounts

Fullstack authentication and accounts-management for Javascript.
https://www.accountsjs.com/
MIT License
1.5k stars 141 forks source link

Bug: two-factor still set in db after awaiting unset of totp #1181

Closed pozylon closed 3 years ago

pozylon commented 3 years ago

Missing "await" here:

https://github.com/accounts-js/accounts/blob/d8451e6a4da60a413bdc5bfc1065ced538f6ab94/packages/two-factor/src/two-factor.ts#L126