From 3afecf2ec158bbf75c807818652e42ffdff2860c Mon Sep 17 00:00:00 2001 From: Kirill Platonov Date: Thu, 11 Mar 2021 12:40:37 +0300 Subject: [PATCH] Fetch access scope via #dig in callback controller --- app/controllers/shopify_app/callback_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/shopify_app/callback_controller.rb b/app/controllers/shopify_app/callback_controller.rb index 845fcccae..a2f1db2fb 100644 --- a/app/controllers/shopify_app/callback_controller.rb +++ b/app/controllers/shopify_app/callback_controller.rb @@ -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