Recovery codes #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello
Is there anyway we can generate recovery/backup codes that my users can use when they loose access to their account or do not have access to google auth app?
Thanks
"recovery codes" are separate from and unrelated to the HTOP/TOTP (aka "Authenticator") standards.
Basically you just
crypto.randomBytes(16).toString('hex')
yourself a few codes and store them in a database associated with the user, and then mark them as deleted once they're used.