Skip to content

hoa-js/csrf

Repository files navigation

@hoajs/csrf

CSRF middleware for Hoa.

Installation

$ npm i @hoajs/csrf --save

Quick 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 app

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

CSRF middleware for Hoa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •