@hoajs/csrf
v0.1.1
Published
CSRF middleware for Hoa.
Downloads
6
Readme
@hoajs/csrf
CSRF middleware for Hoa.
Installation
$ npm i @hoajs/csrf --saveQuick Start
import { Hoa } from 'hoa'
import { csrf } from '@hoajs/csrf'
const app = new Hoa()
app.use(csrf())
app.use(async (ctx) => {
ctx.res.body = `Hello, Hoa!`
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
