module Authlogic::ActsAsAuthentic::PerishableToken::Config

Configure the perishable token.

Public Instance Methods

disable_perishable_token_maintenance(value = nil) click to toggle source

Authlogic tries to expire and change the perishable token as much as possible, without compromising its purpose. If you want to manage it yourself, set this to true.

  • Default: false

  • Accepts: Boolean

# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 46
def disable_perishable_token_maintenance(value = nil)
  rw_config(:disable_perishable_token_maintenance, value, false)
end
disable_perishable_token_maintenance=(value = nil)
perishable_token_valid_for(value = nil) click to toggle source

When using the find_using_perishable_token method the token can expire. If the token is expired, no record will be returned. Use this option to specify how long the token is valid for.

  • Default: 10.minutes

  • Accepts: Fixnum

# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 31
def perishable_token_valid_for(value = nil)
  rw_config(
    :perishable_token_valid_for,
    (!value.nil? && value.to_i) || value,
    10.minutes.to_i
  )
end
Also aliased as: perishable_token_valid_for=
perishable_token_valid_for=(value = nil)