📅  最后修改于: 2022-03-11 15:04:09.238000             🧑  作者: Mango
var token = jwt.sign({key_name:'key_value'}, "secret_key", {
expiresIn: '24h' // expires in 24 hours
expiresIn: '365d' // expires in 365 days
});