Skip to content

Commit

Permalink
Merge pull request #1210 from kirillplatonov/fix-omniauth-mock
Browse files Browse the repository at this point in the history
Fetch access scope via #dig in callback controller
  • Loading branch information
rezaansyed committed Mar 12, 2021
2 parents b4e80c9 + 3afecf2 commit 651a8f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/shopify_app/callback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def token
end

def access_scopes
return unless auth_hash['extra']['scope']
auth_hash['extra']['scope']
auth_hash.dig('extra', 'scope')
end

def reset_session_options
Expand Down

0 comments on commit 651a8f6

Please sign in to comment.