系统登录的过期时间是否可以自己定义?
我记得现在好像是默认一周。
1 Like
环境变量设置 JWT_EXPIRES_IN
, 默认 7d
Eg:
60
,"2 days"
,"10h"
,"7d"
. A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default ("120"
is equal to"120ms"
).
1 Like