SyntaxFix
Write A Post
Hire A Developer
Questions
You should use jwt.verify it will check if the token is expired. jwt.decode should not be used if the source is not trusted as it doesn't check if the token is valid.