jwt expirein code example
Example 1: extract payload of expired jwt token in js
if(err.name === 'TokenExpiredError') {
const payload = jwt.verify(token, SECRET, {ignoreExpiration: true} );
// your code
}
Example 2: npm package for jwt
$ npm install jwt-simple