Closed misshula closed 1 year ago
Thanks for pointing this out, we'll look into it!
After about 3 months of bugfixing, searching in forums and annoying our customers, this issue here popped up to our attention...
This is completely misleading because koa is deviating from the official shopify documentation.
koa should define 'offline' mode as default, just like the official documentation says...
I raised this back in Feb 21 but the response was it defaults to online
by design. Not entirely sure why this though?
Seems to trip quite a few people up.
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.
When reading the Docs on Access Modes (Offline vs Online)
as seen here: https://shopify.dev/apps/auth/access-modes#offline-access
as seen here: https://shopify.dev/apps/auth/access-modes#online-access
But, when using the Shopify CLI - it isn't obvious why you cannot make offline admin API calls... until you read this line: https://github.com/Shopify/koa-shopify-auth/blob/e70874f1cfc64bd01733fd98e1a14e45293bed83/src/auth/index.ts#L14
The fix is easy enough - be explicit: