Sha256: cb85ad50567bedc3d36529ced49a22676e8f7a188036d66ea849d2a1dfbff054

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

# After each sign in, update credentials refreshed at time
Warden::Manager.after_set_user except: :fetch do |record, warden, options|
  warden.session(options[:scope])["credentials_refreshed_at"] = (Time.now + record.class.otp_credentials_refresh)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-otp-1.0.0 lib/devise_otp_authenticatable/hooks/refreshable.rb
devise-otp-0.8.0 lib/devise_otp_authenticatable/hooks/refreshable.rb
devise-otp-0.7.1 lib/devise_otp_authenticatable/hooks/refreshable.rb
devise-otp-0.7.0 lib/devise_otp_authenticatable/hooks/refreshable.rb