Shopify / koa-shopify-auth

DEPRECATED Middleware to authenticate a Koa application with Shopify
MIT License
80 stars 63 forks source link

random "Cannot complete OAuth process. No session found for the specified shop url" #86

Closed giladv closed 3 years ago

giladv commented 3 years ago

Hello,

having random issues with auth. i get an Cannot complete OAuth process. No session found for the specified shop url on the auth/callback stage. can't really reproduce it reliably, it just happens once every 50 or so auth flows. what i was able to do is to log the response from Shopify.Auth.getCookieSessionId(...) and the response is empty when this issue happens (on the auth/callback request).

please advise, my app is getting rejected because unfortunately the app tester got this error:(

anjain commented 3 years ago

@giladv, update the lib version to 4.1.2. Remove iframe cookies and try again. See this thread #81

ilugobayo commented 3 years ago

@giladv does your app use navigation for various pages?

giladv commented 3 years ago

hi, i couldn't reproduce the issue after updating the lib. hope that it's gone :) @ilugobayo yes, but this happens on the initial auth, not while routing internally thanks!

ilugobayo commented 3 years ago

@giladv well, I'm actually looking for help since my internal routing doesn't work, let alone request to the server to my custom endpoints; so I was wondering if you could share with me how you handle that

giladv commented 3 years ago

this is kinda out of context for this bug report but all you need it to read about routing and api endpoints on the nextjs docs

paulomarg commented 3 years ago

Glad to hear the newer version is working for you @giladv! I'll go ahead and close this issue, but please reopen it if you continue to experience the issue.