Function handleWebhookErrorMiddleware
- handleWebhookErrorMiddleware(error, __namedParameters, res, next): void
-
Parameters
-
error: unknown
-
__namedParameters: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns void
Express middleware that processes a webhook error and returns a WebhookResponse with status code 401. Also logs the resulting error.