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

How can I override or make the APP_UNINSTALLED webhook path optional? #1866

Open
imrostom opened this issue Dec 13, 2024 · 0 comments
Open

Comments

@imrostom
Copy link

Overview/summary

function mountWebhooks(
  api: Shopify,
  config: AppConfigInterface,
  handlers: WebhookHandlersParam,
) {
  api.webhooks.addHandlers(handlers as AddHandlersParams);

  // Add our custom app uninstalled webhook
  const appInstallations = new AppInstallations(config);

  api.webhooks.addHandlers({
    APP_UNINSTALLED: {
      deliveryMethod: DeliveryMethod.Http,
      callbackUrl: config.webhooks.path,
      callback: deleteAppInstallationHandler(appInstallations, config),
    },
  });
}

You found this code here

https://github.com/Shopify/shopify-app-js/blob/main/packages/apps/shopify-app-express/src/webhooks/index.ts

@imrostom imrostom changed the title How can I override or make the APP_UNINSTALLED webhook optional? How can I override or make the APP_UNINSTALLED webhook path optional? Dec 13, 2024
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

1 participant