This commit is contained in:
陆柯 2023-03-12 21:17:32 +08:00
parent 87720d48da
commit b69c154255

View File

@ -30,6 +30,9 @@ module.exports = {
if (!key) { if (!key) {
console.warn('*** tokenkey is empty! ***') console.warn('*** tokenkey is empty! ***')
} }
if (!token) {
return null
}
try { try {
return JsonWebToken.verify( return JsonWebToken.verify(
token, token,