소스 검색

!170 Expiration time should not set on the refresh token
Merge pull request !170 from 呵呵大/N/A

芋道源码 1 년 전
부모
커밋
1e49a8eaf0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils/auth.ts

+ 1 - 1
src/utils/auth.ts

@@ -20,7 +20,7 @@ export const getRefreshToken = () => {
 
 // 设置token
 export const setToken = (token: TokenType) => {
-  wsCache.set(RefreshTokenKey, token.refreshToken, { exp: token.expiresTime })
+  wsCache.set(RefreshTokenKey, token.refreshToken)
   wsCache.set(AccessTokenKey, token.accessToken)
 }