feat: 1.3.6, ctx增加authToken字段
This commit is contained in:
parent
7af471cfb8
commit
fe352d815a
@ -122,6 +122,8 @@ AuthToken.prototype.koaRequest = async function (ctx, next) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.authToken = this;
|
||||||
|
|
||||||
return next();
|
return next();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ehason/auth",
|
"name": "@ehason/auth",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"description": "User auth lib",
|
"description": "User auth lib",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user