Im writing an app with nestjs and Im using nestjs-shopify librray the point Im having the problem is when the user wait for some times and click on install i face with the error of Could not find an OAuth cookie for shop url {Name of store} and it will not installs but when the user click on install immediately it works correctly. is there any way to expand the expiration time so users have more times to click on install button?
as a setting im passing this data to shopify auth
If so you may need to ask in the repo, this library isn’t maintained by Shopify so it will be difficult for us to determine how authentication is intended to work with it.
The interesting about this is that my app was working just fine all last week. I decided to uninstall it and re-install it so that I can update the app permissions and then ran into this issue.
Any ideas on what I might be doing wrong?
I’m not sure why OAuth cookie is missing from the Shop Url.
Hey everyone, I am leaving this comment as a note to anyone else that encounters this issue. When using the Shopify app Express template, it uses an outdated version of the Shopify OAUTH protocol.
It took me a long time to find any information on this, but I found another post in the community that shed some light on this situation:
According to the post above, Shopify is no longer maintaining their official express template. So what that means is that we need to take the time to understand how to make this work with the Shopify API library that Shopify maintains for NodeJS.
It seems like that is actively being maintained so it’ll be much more reliable than the Express Template.
Shopify now recommends that we use the Shopify CLI to set up a managed Shopify Installation to keep track of our app configuration settings and to use a Token Exchange to handle OAUTH
You can find more information about this by reading the post I linked to above.