jwt token expire time in node js

Solutions on MaxInterview for jwt token expire time in node js by the best coders in the world

showing results for - "jwt token expire time in node js"
Stefano
25 Mar 2018
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        //expiresIn: "120s" // it will be expired after 120s
6 });
7