UNPKG

@dwp/govuk-casa

Version:

A framework for building GOVUK Collect-And-Submit-Applications

16 lines (15 loc) 466 B
/** * @typedef {import("express").RequestHandler} RequestHandler * @access private */ /** * Data middleware. * * 2 middleware: one to generate the csrf token and check its validity (POST * only), and one to provide that token to templates via the `casa.csrfToken` * variable. * * @returns {RequestHandler[]} Middleware functions */ export default function csrfMiddleware(): RequestHandler[]; export type RequestHandler = import("express").RequestHandler;