christophergregory / shopify-node-api

OAuth2 Module for Shopify API
MIT License
216 stars 74 forks source link

Embedded App Authentication #84

Closed celsowhite closed 7 years ago

celsowhite commented 7 years ago

I'm creating an embedded app and this wrapper is working well. I don't see any special instructions in the documentation about escaping the iframe. Does this app automatically handle the oAuth redirect for embedded apps through the function res.redirect(auth_url)? Or do I need to add code within my app to escape the iframe?

Per Shopify's documentation "it is critical that the initial OAuth request redirect escapes the iframe to make the requests."

nodeit commented 7 years ago

Sorry for the delay. You will need to add this code yourself as it is not provided within this module.