u
This commit is contained in:
parent
87720d48da
commit
b69c154255
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user