Documentation for Ruby usage of the Authy API lives in the official Twilio documentation.
The Authy API supports multiple channels of 2FA:
- One-time passwords via SMS and voice.
- Soft token (TOTP via the Authy App)
- Push authentication via the Authy App
If you only need SMS and Voice support for one-time passwords, we recommend using the Twilio Verify API instead.
More on how to choose between Authy and Verify here.
For a full tutorial, check out either of the Ruby Authy Quickstart in our docs:
gem install authy
To use the Authy client, require the authy
gem and initialize it with our API URI and your production API Key found in the Twilio Console:
require 'authy'
Authy.api_uri = 'https://api.authy.com'
Authy.api_key = 'your-api-key'
Rails users can put this in config/initializers and create a new file called authy.rb
.
OR
Phone verification now lives in the Twilio API and has Ruby support through the official Twilio helper libraries.
Legacy (V1) documentation here. Verify V1 is not recommended for new development. Please consider using Verify V2.
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
- Fork the project.
- Start a feature/bugfix branch.
- Commit and push until you are happy with your contribution.
- Add tests.
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit.
Copyright (c) 2011-2020 Authy Inc. See LICENSE for further details.