Answers for "jwt token expire time in node js"

1

jwt token expire time in node js

var token = jwt.sign({email_id:'[email protected]'}, "Stack", {
        expiresIn: "10h" // it will be expired after 10 hours
        //expiresIn: "20d" // it will be expired after 20 days
        //expiresIn: 120 // it will be expired after 120ms
        //expiresIn: "120s" // it will be expired after 120s
 });
Posted by: Guest on July-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language