Closed stephenmathieson closed 7 years ago
@fengmk2 @dead-horse i think you guys added the middleware feature
@stephenmathieson invited you to @koajs/sessions if you're interested in helping out
@stephenmathieson
there have some test cases for middleware usage, and I fixed the example, you can check it out.
thanks @jonathanong. not sure if i want the responsibility, but i'll think about it :)
@dead-horse the test cases don't use csrf.middleware
; they use csrf()
instead
@stephenmathieson it's a simplified way to using csrf as a middleware
Default signature has changed. Closing for now.
i can't seem to get it working, but
app.use(require('koa-csrf')())
works fine. sincecsrf.middleware
is the suggested way of using this thing, i'm surprised there are no tests for it