Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extract payload of expired jwt token in js

if(err.name === 'TokenExpiredError') {
    const payload = jwt.verify(token, SECRET, {ignoreExpiration: true} );
    // your code
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #payload #expired #jwt #token #js
ADD COMMENT
Topic
Name
6+5 =