diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index 22a0e5c9..1c3d9d1c 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -36,6 +36,8 @@ def store_auth_info(token:, request_ip:, data:) private def auth_info + return if session[:uuid].blank? + cached_data = Rails.cache.fetch(session[:uuid]) || '' decrypted_data = Encryptor.decrypt(cached_data) return unless decrypted_data