Registry / auth / active-model-otp

active-model-otp

JSON →
library2.3.4rbrubygemsunverified

Adds methods to set and authenticate against one time passwords for two-factor authentication, inspired by ActiveModel::SecurePassword.

gem install active_model_otp
INSTALL
IMPORT
SIG · ACTIVE-MODEL-OTP
A
active-model-otp
authrubyv2.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ActiveModel::Otp
require 'active_model_otp'

Generate and verify one-time passwords

require 'active_model_otp' class User < ActiveRecord::Base has_one_time_password end user = User.first user.otp_code
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
58 hits · last 30 days
node
48
Resources
active-model-otp — gem install active-model-otp · libregistry