From 73cd6e303d9c3bb8822c606187f692fb4fccc31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=BB=BA?= <1348660141@qq.com> Date: Mon, 19 Jun 2023 13:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=E6=98=AF?= =?UTF-8?q?`access=20token`=20=E7=9A=84=E8=BF=87=E6=9C=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=EF=BC=8C=E4=BD=86=E6=98=AF=E8=A2=AB=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=9C=B0=E8=AE=BE=E7=BD=AE=E5=9C=A8=E4=BA=86`refresh=20token`?= =?UTF-8?q?=20=E4=B8=8A=EF=BC=8C=E8=BF=99=E5=AF=BC=E8=87=B4=E8=BF=87?= =?UTF-8?q?=E4=BA=86=E5=87=A0=E5=88=86=E9=92=9F=E7=99=BB=E5=BD=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=BE=BF=E5=A4=B1=E6=95=88=E8=A6=81=E6=B1=82=E9=87=8D?= =?UTF-8?q?=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) }