延长token有效时间到3小时

This commit is contained in:
lulz1 2024-04-10 17:00:18 +08:00
parent db38a244e7
commit f2792bcf86
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class AuthMessageConstant {
// JWT // JWT
public static final String SECRET = "Superdandan"; // 替换为你自己的密钥 public static final String SECRET = "Superdandan"; // 替换为你自己的密钥
public static final String SUBJECT = "EmployeeNo"; public static final String SUBJECT = "EmployeeNo";
public static final long EXPIRATION_TIME_MS = 3600000L; // 1小时过期时间 public static final long EXPIRATION_TIME_MS = 10800000L; // 3小时过期时间
public static final String HEADER_TOKEN = "token"; public static final String HEADER_TOKEN = "token";
public static final String HEADER_TOKEN_UP_CASE = "Token"; public static final String HEADER_TOKEN_UP_CASE = "Token";