Method: Authenticate::Configuration#timeout_in

Defined in:
lib/authenticate/configuration.rb

#timeout_inActiveSupport::CoreExtensions::Numeric::Time

Invalidate the session after the specified period of idle time. If the interval between the current access time and the last access time is greater than timeout_in, the session is invalidated. The user will be prompted for authentication again.

Defaults to nil, which is no idle timeout.

Authenticate.configure do |config|
  config.timeout_in = 45.minutes
end

Returns:

  • (ActiveSupport::CoreExtensions::Numeric::Time)


116
117
118
# File 'lib/authenticate/configuration.rb', line 116

def timeout_in
  @timeout_in
end