Skip to content

Commit

Permalink
Correct json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmarkgo committed Nov 11, 2024
1 parent 15ae467 commit e0d5b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/omniauth/strategies/mlh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def data
private

def fetch_and_process_data
response = access_token.get(build_api_url).parsed
data = response.deep_symbolize_keys[:data]
response = access_token.get(build_api_url)
data = JSON.parse(response.body, symbolize_names: true)
return {} unless data.is_a?(Hash)

symbolize_nested_arrays(data)
Expand Down

0 comments on commit e0d5b61

Please sign in to comment.