1var token = jwt.sign({email_id:'123@gmail.com'}, "Stack", {
2
3 expiresIn: '24h' // expires in 24 hours
4
5 });
1 var token = jwt.sign({email_id:'123@gmail.com'}, "Stack", {
2 expiresIn: "10h" // it will be expired after 10 hours
3 //expiresIn: "20d" // it will be expired after 20 days
4 //expiresIn: 120 // it will be expired after 120ms
5 });