fix: fixed the failure to refresh the page when login failed (#4204)

This commit is contained in:
Vben
2024-08-20 22:33:25 +08:00
committed by GitHub
parent fecf55139d
commit 2288827265
12 changed files with 38 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ export interface UserPayload extends UserInfo {
}
export function generateAccessToken(user: UserInfo) {
return jwt.sign(user, ACCESS_TOKEN_SECRET, { expiresIn: '2h' });
return jwt.sign(user, ACCESS_TOKEN_SECRET, { expiresIn: '1d' });
}
export function generateRefreshToken(user: UserInfo) {