mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 02:08:45 +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 | // 设置token | ||||||
| export const setToken = (token: TokenType) => { | export const setToken = (token: TokenType) => { | ||||||
|   wsCache.set(RefreshTokenKey, token.refreshToken, { exp: token.expiresTime }) |   wsCache.set(RefreshTokenKey, token.refreshToken) | ||||||
|   wsCache.set(AccessTokenKey, token.accessToken) |   wsCache.set(AccessTokenKey, token.accessToken) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 呵呵大
					呵呵大