Elixir library access to the Authy API, based loosely on the ruby gem.
- Phone Verification
- Add authy to your list of dependencies in
mix.exs
:
def deps do
[{:authy, github: "365assistance/authy"}]
end
- Ensure authy is started before your application:
def application do
[applications: [:authy]]
end
- Configure your api key and defaults for the various APIs
config :authy,
api_key: System.get_env("AUTHY_API_KEY")
phone_verification: [
via: "sms",
country_code: "61",
locale: "en-AU",
custom_message: "Verification code, yo!"]