feat: 1.3.6, ctx增加authToken字段

This commit is contained in:
lik 2021-01-07 16:40:30 +08:00
parent 7af471cfb8
commit fe352d815a
2 changed files with 3 additions and 1 deletions

View File

@ -122,6 +122,8 @@ AuthToken.prototype.koaRequest = async function (ctx, next) {
return;
}
ctx.authToken = this;
return next();
};

View File

@ -1,6 +1,6 @@
{
"name": "@ehason/auth",
"version": "1.3.5",
"version": "1.3.6",
"description": "User auth lib",
"main": "index.js",
"scripts": {