So I would perform certain operations whenever the user installs my app for the first time.
In which part in my node app, I should put this code?
Note: Code will be run only once when a user installs the app, I've created an app using shopify node create.
In the afterAuth function, the same place were uninstall webhook is registered. You can check if the shop exists in the db or not, if it does not exist then it's first time install.
Is the afterAuth function still available? I can't find it in their webhook documentation https://shopify.dev/docs/api/admin-rest/2023-10/resources/webhook
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024