Closed WeikunYe 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.
Issue summary
When a request has a valid session, the verifyRequest middleware is still directing to the "/auth" router rather than letting the request goes to the actual request handler function.
Expected behavior
verifyRequest middleware should allow the request with a valid session to go to the actual request handler.
Actual behavior
When I put verifyRequest on the "/api/test" route, it will redirect to "/auth".
If I remove the verifyRequest middleware, I can actually log a valid session in the TestController.index
And the session is
The request was made today(2nd Dec), and it will expire tomorrow. So, I guess this is a valid session.
Steps to reproduce the problem
It's very similar to your demo code, but I add/edit: