View Source Getting Started
Summary
TwoFactorInACan
is a library for adding two factor authentication (2FA) to
your application. Its goal is to be the most developer friendly way to securely
setup two factor authentication in the Elixir/Erlang ecosystem. That means that
not only is it thoroughly documented and easy to add to your project, but it's
also the easiest to understand should you need to take a look behind the
curtain.
Installation
This library is not currently available on hex.
Once it is:
The package can be installed by adding two_factor_in_a_can
to your list of
dependencies in mix.exs
:
def deps do
[
{:two_factor_in_a_can, "~> 0.2.0"}
]
end
Usage
Time-Based One Time Password (TOTP)
See TwoFactorInACan.Totp
for usage details.
HMAC-Based One Time Password (HOTP)
See TwoFactorInACan.Hotp
for usage details.