Closed Draccano closed 2 years ago
If you look at the https://github.com/Shopify/koa-shopify-auth#example-app , there is code snippet for using shopifyAuth method. However response for webhook is wrong.
Instead of the
if (!response.success) { console.log( `Failed to register APP_UNINSTALLED webhook: ${response.result}`, ); }
There should be
if (!response['APP_UNINSTALLED'].success) { console.log( `Failed to register APP_UNINSTALLED webhook: ${response['APP_UNINSTALLED'].result}` ); }
Wrong code snippet in Readme
If you look at the https://github.com/Shopify/koa-shopify-auth#example-app , there is code snippet for using shopifyAuth method. However response for webhook is wrong.
Expected behavior
Instead of the
There should be