Closed ardeearam closed 1 year ago
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
In the README.md, it says
My initial impression of
['Your scopes']
is[process.env.SCOPES]
which erroneously and quietly resolves to['read_themes,read_script_tags']
. This then produces a subtleverifyRequest()
error which is hard to track down.Motivation
I got bitten by this bug and it took me a good day to track it down, combing through several third-party modules until ending on the wrong usage of
SCOPES
.Checklist
Pull request can be found here: https://github.com/Shopify/koa-shopify-auth/pull/98