yeojz / otplib

:key: One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
https://otplib.yeojz.dev
MIT License
1.96k stars 132 forks source link

backup codes #195

Closed jamilservicos closed 4 years ago

jamilservicos commented 4 years ago

how can i generate backup codes for google authenticator?

yeojz commented 4 years ago

@jamilservicos Backup codes are not part of the RFCs and as such, out of scope of the library.

They are actually implemented as a separate layer over the OTP checks and treated as single use passwords that bypasses the OTP.

yeojz commented 4 years ago

Dev Note: Consider adding this to the README.