From 5554d7c995f972dbdda22570900b19f917a91aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B5=E5=91=B5=E5=A4=A7?= <2222671+geekrim@user.noreply.gitee.com> Date: Sat, 10 Jun 2023 03:19:03 +0000 Subject: [PATCH] =?UTF-8?q?Expiration=20time=20should=20not=20set=20on=20t?= =?UTF-8?q?he=20refresh=20token=20=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9A=84=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=98=AF`access=20token`=20=E7=9A=84=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=8C=E4=BD=86=E6=98=AF=E8=A2=AB=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=9C=B0=E8=AE=BE=E7=BD=AE=E5=9C=A8=E4=BA=86`refresh?= =?UTF-8?q?=20token`=20=E4=B8=8A=EF=BC=8C=E8=BF=99=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=BF=87=E4=BA=86=E5=87=A0=E5=88=86=E9=92=9F=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=BE=BF=E5=A4=B1=E6=95=88=E8=A6=81=E6=B1=82?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/auth.ts b/src/utils/auth.ts index b55d676d..7da49b08 100644 --- a/src/utils/auth.ts +++ b/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) }