Skip to content
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

Being able to disable webhook handling #748

Open
LouiseEH opened this issue Apr 11, 2024 · 5 comments
Open

Being able to disable webhook handling #748

LouiseEH opened this issue Apr 11, 2024 · 5 comments

Comments

@LouiseEH
Copy link

LouiseEH commented Apr 11, 2024

Overview

We are developing an app where each merchant might use a different set of webhooks, depending on which features of the app they use.
When shopifyApp.auth.path (/api/auth) is called, the app registers webhooks that are defined in the app and deletes all other webhooks. But as the number of webhooks to be registered differs from merchant to merchant, we cannot statically define a set of webhooks for all merchants that use the app.
For this reason it would be great if we could disable the webhook handling in shopify-app-js, so we can implement a custom webhook handling instead. Currently all of our registered webhooks will be removed when shopifyApp.auth.path (/api/auth) is called which happens e.g. when the merchant gets a new browser session (the merchant closes their browser and opens a new browser and access the app again).

I tried with the following, but it seems to be overridden:
image

The following does not work either:
image

The issue seems to be (at least, not limited to) that registerWebhooks is called on authCallback:
image

Kind regards,
-Louise

@LouiseEH
Copy link
Author

OK as a workaround I can override shopify.api.webhooks.register:

image

@matteodepalo
Copy link
Contributor

Hi @LouiseEH thank you for opening the issue and for providing a workaround, we'll take a look 👍

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

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

No branches or pull requests

2 participants