You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -353,35 +352,6 @@ These authentication parameters can be used in client-side upload forms to secur
353
352
354
353
The ImageKit SDK provides utilities to verify webhook signatures for secure event handling. This ensures that webhook requests are actually coming from ImageKit and haven't been tampered with.
355
354
356
-
### Verifying webhook signatures
357
-
358
-
```ts
359
-
importImageKitfrom'@imagekit/nodejs';
360
-
361
-
const client =newImageKit({
362
-
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'],
363
-
webhookSecret: process.env['IMAGEKIT_WEBHOOK_SECRET'], // Required for webhook verification
console.log('Invalid webhook signature or malformed payload');
381
-
// Reject the request
382
-
}
383
-
```
384
-
385
355
For detailed information about webhook setup, signature verification, and handling different webhook events, refer to the [ImageKit webhook documentation](https://imagekit.io/docs/webhooks#verify-webhook-signature).
0 commit comments