fix: 修改auth token del时候的返回值
1.3.5
This commit is contained in:
		
							parent
							
								
									51864c7d5b
								
							
						
					
					
						commit
						7af471cfb8
					
				@ -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是否存在
 | 
				
			||||||
 | 
				
			|||||||
@ -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": {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user