Commit 1023774e authored by 姜登's avatar 姜登

token有效期修改

parent fdf34ed3
Pipeline #22122 passed with stage
in 2 seconds
......@@ -17,7 +17,7 @@ module.exports = appInfo => {
// use for cookie sign key, should change to your own and keep security
config.keys = appInfo.name + '_1559722467295_3512';
config.jwtExp = 60 * 60 * 24 * 30;
config.jwtExp = 60 * 60 * 24 * 7;
// add your middleware config here
config.middleware = [
......@@ -40,7 +40,7 @@ module.exports = appInfo => {
config.jwt = {
secret: 'yizhi_secret',
exp: Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 30,
exp: Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 7,
enable: true, // default is false
ignore: [
'/yizhi_server/api/price',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment