Module: InstantLogin::Adapters::ActiveRecord::Methods::ClassMethods

Defined in:
lib/instant_login/adapters/active_record.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_with_instant_login_token(token) ⇒ Object



27
28
29
30
31
# File 'lib/instant_login/adapters/active_record.rb', line 27

def (token)
  valid_tokens.find_by(instant_login_token: token).tap do |user|
    user. unless user.nil?
  end
end