Skip to content

Commit

Permalink
fix: don't show TokenExpiredError (#624)
Browse files Browse the repository at this point in the history
* fix: don't show TokenExpiredError

* fix: use console.error instead of console.log
  • Loading branch information
eunwoo1104 authored Aug 27, 2023
1 parent 8c976dc commit b3bac55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/Jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b3bac55

Please sign in to comment.