lib/devise/hooks/timeoutable.rb in devise-3.5.1 vs lib/devise/hooks/timeoutable.rb in devise-3.5.2
- old
+ new
@@ -19,13 +19,9 @@
proxy = Devise::Hooks::Proxy.new(warden)
if record.timedout?(last_request_at) && !env['devise.skip_timeout']
Devise.sign_out_all_scopes ? proxy.sign_out : proxy.sign_out(scope)
- if record.respond_to?(:expire_auth_token_on_timeout) && record.expire_auth_token_on_timeout
- record.reset_authentication_token!
- end
-
throw :warden, scope: scope, message: :timeout
end
unless env['devise.skip_trackable']
warden.session(scope)['last_request_at'] = Time.now.utc.to_i