Skip to content

Commit

Permalink
Fetch access scope via #dig in callback controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Platonov committed Mar 12, 2021
1 parent b4e80c9 commit 2f2a14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/shopify_app/callback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def token
end

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

Expand Down

0 comments on commit 2f2a14f

Please sign in to comment.