Hi. We are developing an embedded plugin for shopify. We want to redirect user from admin page to his own store and show him the preview of how our plugin will work on his page.
idea is :
- in shopify user clicks “Preview in My Store”
- he is redirected to his store with query params that we need to open preview
Expected: store opens with query params
Actual: if store has a password query params are removed and user is redirected to /password page
In shopify itself when clicking preview (weve checked), its calling the OnlineStorePreviewSessionCreate method that creates token that bypasses the password, but this method is not accessible for plugin developers. Can u plese provide details on how to create the _br token thats used for session auth in shopify admin
