
// import { Request, Response, NextFunction } from 'express';
// import {  } from 'csrf-sync';

// export function CsrfMiddleware(error: Error, req: Request, res: Response, next: NextFunction) {
//   console.log('middleware error', error)
//     // if (error == invalidCsrfTokenError) {
//     //   res.statusMessage = 'Unable to submit the form'
//     //   return res.status(403).end()
//     // } else {
//     //   next()
//     // }
//     next();
// };