koajs / csrf

CSRF tokens for koa
MIT License
264 stars 32 forks source link

add csrf middleware useage #6

Closed dead-horse closed 10 years ago

dead-horse commented 10 years ago

provide an easy way to hanlde csrf just like conenct.

var csrf = require('koa-csrf')
app.use(csrf())
dead-horse commented 10 years ago

publish to npm ?

jonathanong commented 10 years ago

I did. Is it not available?

dead-horse commented 10 years ago

did not work. you add the wrong user in npm. my username is @dead_horse in npm. :P

jonathanong commented 10 years ago

added