CSRF session middleware.
$ npm install seasurf
var seasurf = ;// All paths past this point have access to the csrfToken methodapp
paths: Array of leading pathnames to enforce CSRF tokens on (with an enforced
method). Defaults to all paths.
methods: Array of HTTP method names to enforce CSRF tokens on (with an enforced
path). Defaults to all methods.
session: Name of the key pointing to session data. Defaults to
token(req, res): Function returning the CSRF token from a request. Defaults to
the value of the
unverified(req, res): Function called when a CSRF token cannot be verified.
Defaults to an empty response with status
Released under the terms of the MIT license. See LICENSE.