mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
fix: don't show TokenExpiredError (#624)
* fix: don't show TokenExpiredError * fix: use console.error instead of console.log
This commit is contained in:
parent
8c976dcd01
commit
b3bac55577
@ -17,7 +17,7 @@ export function verify(token?: string): any | null {
|
||||
try {
|
||||
return jwt.verify(token, publicPem)
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
if(e.name !== 'TokenExpiredError') console.error(e)
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user