Module: Authentication::Logic::ActsAsAuthentic::PerishableToken

Defined in:
lib/auth/logic/acts_as_authentic/perishable_token.rb

Overview

This provides a handy token that is “perishable”, meaning the token is only good for a certain amount of time.

This is useful for resetting password, confirming accounts, etc. Typically during these actions you send them this token in an email. Once they use the token and do what they need to do, that token should expire.

Don’t worry about maintaining the token, changing it, or expiring it yourself. Authentication::Logic does all of this for you. See the sub modules for all of the tools Authentication::Logic provides to you.

Defined Under Namespace

Modules: Config, Methods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



17
18
19
20
21
22
# File 'lib/auth/logic/acts_as_authentic/perishable_token.rb', line 17

def self.included(klass)
  klass.class_eval do
    extend Config
    add_acts_as_authentic_module(Methods)
  end
end