Skip to content

Commit 1e49a8e

Browse files
YunaiVgitee-org
authored andcommitted
!170 Expiration time should not set on the refresh token
Merge pull request !170 from 呵呵大/N/A
2 parents 226cc03 + 5554d7c commit 1e49a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const getRefreshToken = () => {
2020

2121
// 设置token
2222
export const setToken = (token: TokenType) => {
23-
wsCache.set(RefreshTokenKey, token.refreshToken, { exp: token.expiresTime })
23+
wsCache.set(RefreshTokenKey, token.refreshToken)
2424
wsCache.set(AccessTokenKey, token.accessToken)
2525
}
2626

0 commit comments

Comments
 (0)