Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

CookieNotFound [Error]: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: #933

Closed
elwincheng opened this issue Jun 30, 2023 · 4 comments
Labels

Comments

@elwincheng
Copy link

elwincheng commented Jun 30, 2023

Issue summary

Safari mac and iPad users unable to install Shopify app (not embedded). When calling shopify.auth.callback, the following logs appear in our server:

[shopify-api/ERROR] Could not find OAuth cookie | {shop: llamadevstore.myshopify.com}
  • @shopify/shopify-api version: ^6.2.0
  • Node version: 14.19.3
  • Operating system:

Installation works fine on google chrome and windows 10

Expected behavior

Backend should be redirect user to our frontend (app.snapwrite.ca).

Actual behavior

Backend server encounters CookieNotFound error. Users are stuck on this url: https://apie.snapwrite.ca/shopify/authcallback?code=024b18b458864a201045097e6268c69d&hmac=f63904b34f7cc8ed36db36c29afd54750e350fff11ce731a574245f3fb15f074&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvbGxhbWFkZXZzdG9yZQ&shop=llamadevstore.myshopify.com&state=999309317396318&timestamp=1688161930

Steps to reproduce the problem

  1. Use safari on mac or any browser on ipad.
  2. log into app.snapwrite.ca (athiya@snapwrite.ca, Shopify123)
  3. Install the app into any store https://apps.shopify.com/snapwriteai
@jsegeren
Copy link

jsegeren commented Jul 26, 2023

We're also encountering the CookieNotFound [Error], as reported here, which is critical and blocking our product release.

Seeing a similar issue here: Shopify/shopify-app-template-node#1282.

Hi @paulomarg - any thoughts, updates, workarounds?
As a contingency, we're considering other libraries for Shopify OAuth or manual cookie management, but we'd prefer an official resolution.

[shopify-api/INFO] Beginning OAuth | {shop: quickstart-d81c291e.myshopify.com, isOnline: false, callbackPath: /shopify-auth/callback}
[shopify-api/INFO] Completing OAuth | {shop: quickstart-d81c291e.myshopify.com}
[shopify-api/ERROR] Could not find OAuth cookie | {shop: quickstart-d81c291e.myshopify.com}

@jsegeren
Copy link

jsegeren commented Aug 8, 2023

Hello Shopify team and @paulomarg , any update? Suggestions? Thanks
@elwincheng are you still seeing this issue? Did you find a solution/workaround?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2023

This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Oct 8, 2023
@github-actions
Copy link
Contributor

We are closing this issue because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.

If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants