You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the only solution I can think of is to hash the backup codes using bcrypt and store them in DB, and when the user logs in using the code, compare it via bcrypt.compareSync method
Currently, the only solution I can think of is to hash the backup codes using bcrypt and store them in DB, and when the user logs in using the code, compare it via bcrypt.compareSync method
Yes, that's what I'm thinking. The recovery codes provided in this library are just utility functions.
verifyHOTP generates code in
xxxxxx
formatbackup codes are in
xxxx-xxxx-xxxx
formatNo method for verifying them is available.
How to do that?
The text was updated successfully, but these errors were encountered: