fix: 修改auth token del时候的返回值

1.3.5
This commit is contained in:
like 2020-12-05 08:50:51 +08:00
parent 51864c7d5b
commit 7af471cfb8
2 changed files with 3 additions and 1 deletions

View File

@ -70,6 +70,8 @@ AuthToken.prototype.del = async function (userToken) {
if (tokenData) { if (tokenData) {
this.tokenDB.del(userToken); this.tokenDB.del(userToken);
} }
return tokenData;
}; };
// 检查Token是否存在 // 检查Token是否存在

View File

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