Shopify / omniauth-shopify-oauth2

Shopify OAuth2 Strategy for OmniAuth 1.0
http://shopify.github.io/omniauth-shopify-oauth2
91 stars 69 forks source link

Specify online access in params #110

Open adambedford opened 3 years ago

adambedford commented 3 years ago

I'm working through a situation that I think requires getting both online and offline access. My understanding is that, in order for a public app to be approved, it must support a 'sign up' flow directly from the App Store, which would suggest online access so I can get the user's name and email to create an account for them. Moving forward, the app will make requests to Shopify in the background (without a user session), so I think should use an offline token.

Therefore, I'd like to fetch an online token to facilitate registration and subsequently an offline token for data syncing. Can this library support that? i.e. Passing per_user_permissions at request time?