You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just upgraded to the latest version of Shopify app from 7.2.0 to 9.0.1 (omniauth-shopify_oauth2 1.5.0 -> 2.1.0) and we're seeing an issue involving users clicking app links from their shop. We're not using an embedded app.
Scenario
User is signed into app as shop1.myshopify.com
User clicks app link from shop2.myshopify.com
User redirects to app and remains signed in as shop1.myshopify.com
Background
We just upgraded to the latest version of Shopify app from 7.2.0 to 9.0.1 (omniauth-shopify_oauth2 1.5.0 -> 2.1.0) and we're seeing an issue involving users clicking app links from their shop. We're not using an embedded app.
Scenario
Problem
This seems to me because of the following code:
i.e. we're not checking the params for the request params for the shop domain.
Fix
Changing the code to the following seems to resolve the issue:
i.e. use the shop in params if it exists, or fall back to usual behaviour.
Is there anything wrong with this approach? Am I missing something as to why this isn't the normal behaviour?
The text was updated successfully, but these errors were encountered: