'use strict'; const csrf = require('csurf'); const csrfInit = csrf(); const csrfToken = (req, res, next) => { res.locals.csrfToken = req.csrfToken(); next(); }; module.exports = () => { return [csrfInit, csrfToken]; };