diff --git a/auth/index.js b/auth/index.js index f0264d6..56d7ecc 100644 --- a/auth/index.js +++ b/auth/index.js @@ -122,6 +122,8 @@ AuthToken.prototype.koaRequest = async function (ctx, next) { return; } + ctx.authToken = this; + return next(); }; diff --git a/auth/package.json b/auth/package.json index aedca5c..b04bf30 100644 --- a/auth/package.json +++ b/auth/package.json @@ -1,6 +1,6 @@ { "name": "@ehason/auth", - "version": "1.3.5", + "version": "1.3.6", "description": "User auth lib", "main": "index.js", "scripts": {