Skip to content

Commit

Permalink
81092: Refactor Client Config Memoization (#16490)
Browse files Browse the repository at this point in the history
  • Loading branch information
dickdavis authored Apr 25, 2024
1 parent c2cc95b commit e696805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/v0/sign_in_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e696805

Please sign in to comment.