@onfido/api
Version:
Node.js library for the Onfido API
10 lines (9 loc) • 340 B
TypeScript
/// <reference types="node" />
import { WebhookEvent } from "./api";
export declare class OnfidoInvalidSignatureError extends Error {
}
export declare class WebhookEventVerifier {
private readonly webhookToken;
constructor(webhookToken: string);
readPayload(rawEventBody: string | Buffer, hexSignature: string): WebhookEvent;
}