Closed jt274 closed 1 year ago
Hey @jt274, thanks for this. It was pointed out (https://github.com/Shopify/shopify-app-node/issues/575#issuecomment-801952798) that this approach is only actually suited for offline tokens, we'll update the examples and tutorials accordingly.
To answer your questions:
/
endpoint should simply load the app skeleton and check whether there is a session via verifyRequest
to trigger OAuth only when it becomes necessary.Hope this helps! We'll also keep these questions in mind when we update the examples.
Hey @paulomarg , curious if you got opportunity to update documentation & example around this.
Note that this repo is no longer maintained and this issue will not be reviewed. Prefer the official JavaScript API library. If you still want to use Koa, see simple-koa-shopify-auth for a potential community solution.
Overview/summary
There is little documentation in regard to the ACTIVE_SHOPIFY_SHOPS hash. Documentation mentions it is important, but does not give much detail.
Motivation
Current documentation in the tutorial (https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-shopify) reads:
The documentation does not make the following clear: