From e6968050e8e33fe34ceb032afc1c7184b5b6407c Mon Sep 17 00:00:00 2001 From: Dick Davis Date: Thu, 25 Apr 2024 15:34:13 -0500 Subject: [PATCH] 81092: Refactor Client Config Memoization (#16490) --- app/controllers/v0/sign_in_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/v0/sign_in_controller.rb b/app/controllers/v0/sign_in_controller.rb index ebfb30e273a..20b805e4d22 100644 --- a/app/controllers/v0/sign_in_controller.rb +++ b/app/controllers/v0/sign_in_controller.rb @@ -369,7 +369,8 @@ def cookie_authentication?(client_id) end def client_config(client_id) - @client_config ||= SignIn::ClientConfig.find_by(client_id:) + @client_config ||= {} + @client_config[client_id] ||= SignIn::ClientConfig.find_by(client_id:) end def sign_in_logger