The official Authsignal Ruby library for server-side applications. Use this SDK to easily integrate Authsignal's multi-factor authentication (MFA) and passwordless features into your Ruby backend.
Add this line to your application's Gemfile:
gem "authsignal-ruby"And then execute:
bundle installOr install it yourself as:
gem install authsignal-rubyInitialize the Authsignal client with your secret key from the Authsignal Portal and the API URL for your region.
require 'authsignal'
# Initialize the client
Authsignal.setup do |config|
config.api_secret_key = ENV['AUTHSIGNAL_SECRET_KEY']
config.api_url = ENV['AUTHSIGNAL_API_URL'] # Use region-specific URL
end| Region | API URL |
|---|---|
| US (Oregon) | https://api.authsignal.com/v1 |
| AU (Sydney) | https://au.api.authsignal.com/v1 |
| EU (Dublin) | https://eu.api.authsignal.com/v1 |
This SDK is licensed under the MIT License.
For more information and advanced usage examples, refer to the official Authsignal server-Side SDK documentation.
