Answers for "how to set time with jwt token in node js"

0

how to set expire time of jwt token in node js

var token = jwt.sign({email_id:'[email protected]'}, "Stack", {

                        expiresIn: '24h' // expires in 24 hours

                         });
Posted by: Guest on July-24-2020
0

how to set time with jwt token 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
 });
Posted by: Guest on July-24-2020

Code answers related to "how to set time with jwt token in node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language