Last night I looking for a 2FA library which suited my needs :
- Generate a Random Alphabet/Secret
- Generate QR-Code (so that users can scan with the 2FA application)
- Calculate TOTP By the secret code
but as it is difficult to find it, therefore I combine several people’s source code into one
https://github.com/codenoid/elixir-two-factor-auth
I hope this library is useful for you ^^