@transcend-io/typescript-webhook-example
Version:
Example of a webhook that can be integrated with Transcend.
11 lines • 476 B
TypeScript
/**
* Helper to verify incoming webhook requests
*
* Transcend developers: A design choice was made not to put webhook verification on an Express middleware.
* It's a nice refactor, but it can be esoteric to readers.
*
* @param signedToken - the JSON Web Token asymmetrically signed with ES384.
* @returns - the signed body
*/
export declare function verifyWebhook(signedToken: string | string[] | undefined): Promise<void>;
//# sourceMappingURL=verifyWebhook.d.ts.map