📌  相关文章
📜  节点js中的jwt令牌过期时间 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:58.240000             🧑  作者: Mango

代码示例1
var token = jwt.sign({email_id:'123@gmail.com'}, "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
 });