mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-01 02:38:44 +08:00 
			
		
		
		
	Expiration time should not set on the refresh token
登录接口返回的过期时间是`access token` 的过期时间,但是被错误地设置在了`refresh token` 上,这导致过了几分钟登录状态便失效要求重新登录
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 呵呵大
					呵呵大