Skip to content

Commit 55fb21f

Browse files
committed
Update oauth logic to account for new admin-web url
1 parent f33b9f1 commit 55fb21f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/shopify_api/auth/oauth.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ def auth_base_uri(shop)
114114
return "https://#{shop}/admin" unless defined?(DevServer) && shop.include?(".my.shop.dev")
115115

116116
# For first-party apps in development only, we leverage DevServer to build the admin base URI
117-
admin_web = T.unsafe(Object.const_get("DevServer")).new("web") # rubocop:disable Sorbet/ConstantsFromStrings
118-
admin_host = admin_web.host!(nonstandard_host_prefix: "admin")
117+
admin_web = T.unsafe(Object.const_get("DevServer")) # rubocop:disable Sorbet/ConstantsFromStrings
118+
.new("admin-web")
119+
admin_host = admin_web.host!
119120
shop_name = shop.split(".").first
120121

121122
"https://#{admin_host}/store/#{shop_name}"

0 commit comments

Comments
 (0)