heapsource / active_model_otp

Adds methods to set and authenticate against one time passwords (Two-Factor Authentication). Inspired in AM::SecurePassword
MIT License
773 stars 81 forks source link

Apply otp counter with drift #42

Closed sudarshna-patel closed 5 years ago

sudarshna-patel commented 6 years ago

I want to apply expiry time with otp counter. I wrote as resource.authenticate_otp(params[:customer][:otp], drift: 900, auto_increment: true) but apparently otp is not getting expired after 15 minutes. Is it possible for me to do it? or is there other way to do it?

robertomiranda commented 5 years ago

closed by #19