CSRF middleware for Hoa.
$ npm i @hoajs/csrf --saveimport { 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 appThe documentation is available on hoa-js.com
$ npm testMIT