Closed hvintik closed 2 years ago
This will be resolved in v4.0.0 released to npm later today
Released koa-csrf v4.0.0, which requires Node >= 14.
Actually, we're deprecating v4.0.0 and just released v4.0.1. All the "getter" internals need rewritten to actually support "ctx.state.csrf" properly.
v5.0.0 is released which strictly and only supports ctx.state._csrf
🎉
Note we also added errorHandler
function option. See the notice at the top of the README or view the releases tab for more insight:
ctx.state is a recommended namespace for passing information through middleware and to your frontend views.