-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[shopify-app-remix] Allow to add dynamic webhooks in afterAuth()
#1030
Comments
Hi there 👋 Thank you for this! There are some webhook changes coming down the pipe, and we are looking to make some improvements in this area. I am going to flag this with the rest of the team, and we will be keeping this in consideration! |
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests. You can add a comment to remove the label if it's still relevant, and we can re-evaluate it. |
Hi @lizkenyon is there any roadmap for these webhooks changes? :-) |
Hi I added this ticket to our work backlog. There are some things ahead of this, so transparently we won't be starting on this immediately. With the release of subscribing to webhooks in the shopify.app.toml file, it makes sense for us to have a high DX way for dynamically subscribing shops to webhooks. We will update this ticket with an idea of the what the API for this will look like when we start working on it. |
Same here |
Overview
The
shopifyApp()
function acceptswebhooks
on initialization. These webhooks can then be registered inafterAuth()
:This works for static webhook where the callback URL or AWS event source is static and available on initialization. In my case, the webhook callback URLs depend on values that I first receive after authorization when I have a valid session.
In this case, I cannot use the static
webhooks
object onshopifyApp()
. Instead, I create a secondshopifyApp()
object inside theafterAuth
which I use to register the webhooks:It would be nice if there were another option to add webhooks to the
shopifyApp()
instance after it was created. For example, the instance could a expose thewebhooks
object so that we can add additional webhooks inafterAuth()
OR theshopify.registerWebhooks()
function could accept an optional object with webhooks to register:The text was updated successfully, but these errors were encountered: