Skip to content

Commit

Permalink
Merge pull request #41 from nhosoya/fix-present
Browse files Browse the repository at this point in the history
Fix where the RoR extension is used
  • Loading branch information
nhosoya authored Jun 19, 2020
2 parents 3715b10 + 6dac8d9 commit eaff7f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/omniauth/strategies/apple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def client_id
end

def user_info
return {} unless request.params['user'].present?
user = request.params['user']
return {} if user.nil?

log(:info, "user_info: #{request.params['user']}")
@user_info ||= JSON.parse(request.params['user'])
@user_info ||= JSON.parse(user)
end

def email
Expand Down

0 comments on commit eaff7f9

Please sign in to comment.