In the partners dashboard, testing my app on a test store works. But when I try to load the embedded app in the storefront, it says oauth cookie could not be found for the shop url, everytime. I am using nonce and signing cookies and comparing them like the docs say, but it just says cookie not found only on the storefront page
Error exchanging code for access token: CookieNotFound [Error]: Cannot complete OAuth process. Could not find an OAuth cookie for shop url.
This is my first shopify app and I am a bit confused, it seems that the repo is saying that cookies issue happens due to timing out, but on my end testing the app on the storefront never works, unrelated to timing out. But when I click test app on test store it works from there. I haven't done much with app bridge yet because I can only get it to work from test app on test store, not the store front. It seems that repo has a redirect that also involves escaping an iframe with app bridge, but how can that be if oauth has not been completed at that point? I am very confused, any clarification would be greatly appreciated, thank you!
Here are some docs on the oauth flow including embedded app / redirect details: https://shopify.dev/docs/apps/auth/oauth/getting-started
Can you share details of the stack you're using / how you created the app?
Scott | Developer Advocate @ Shopify
I exchanged the info for an access token using the endpoint. This seems to have fixed the issue of the cookie issue, will that still pass the inspection for submitting a public app? I used the API library for every other reaction, except ending oauth.