Flash messages for your koa application.
$ npm install koa-flash
koa-flash also depends on koa-session. You must add koa-session as a middleware prior to adding koa-flash as seen in the example:
var koa =session =flash = ;var app = ;appkeys = 'foo';app;app;app;app;
this.flash (Object, Number, String, etc.). A common use case is to save an error message from a
POST request when redirecting to a
GET request to display the form again.
Flash data is saved into
this.session['koa-flash'] by default. You can change this by passing in a
Also, you can set
defaultValue instead of