Module: Sorcery::Model::Submodules::MagicLogin::ClassMethods

Defined in:
lib/sorcery/model/submodules/magic_login.rb

Instance Method Summary collapse

Instance Method Details

#load_from_magic_login_token(token, &block) ⇒ Object

Find user by token, also checks for expiration. Returns the user if token found and is valid.



55
56
57
58
59
60
61
62
# File 'lib/sorcery/model/submodules/magic_login.rb', line 55

def (token, &block)
  load_from_token(
    token,
    @sorcery_config.,
    @sorcery_config.,
    &block
  )
end