chentsulin / koa-bearer-token

Bearer token parser middleware for koa
MIT License
33 stars 6 forks source link

Koa v3 support #2

Closed yentsun closed 6 years ago

yentsun commented 6 years ago

While using the middleware:

const bearerToken = require('koa-bearer-token');
...
app.use(bearerToken());

I get this warning:

koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md

Is non-generator version planned?

chentsulin commented 6 years ago

hi @yentsun, v1.0.0 already support promise and async function.