@idealite/web-services
Version:
Comprehensive web services library with webhook system and Mux integration
16 lines • 686 B
TypeScript
import { WebhookVerifier } from '../interfaces/webhook.interface';
/**
* Mux-specific webhook signature verifier
* Uses the official Mux Node.js library for signature verification
* Based on https://docs.mux.com/guides/webhooks/verify-webhook-signatures
*/
export declare class MuxWebhookVerifier implements WebhookVerifier {
private muxClient;
constructor(webhookSecret: string);
verify(payload: string, signature: string, _secret?: string): boolean;
/**
* Verify webhook with timestamp for additional security
*/
verifyWithTimestamp(payload: string, signature: string, timestamp: string): boolean;
}
//# sourceMappingURL=mux-webhook-verifier.d.ts.map