From 6d30c19ffbabf79c30981a7e913ff8afbcdd54e6 Mon Sep 17 00:00:00 2001 From: luorijun Date: Wed, 30 Apr 2025 16:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=88=E6=9D=83=E6=92=A4?= =?UTF-8?q?=E9=94=80=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E4=BD=BF=E7=94=A8=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BB=A4=E7=89=8C=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/auth.ts b/src/actions/auth.ts index 6d14805..c7d90a8 100644 --- a/src/actions/auth.ts +++ b/src/actions/auth.ts @@ -54,7 +54,7 @@ export async function logout() { const access_token = cookieStore.get('auth_token')?.value const refresh_token = cookieStore.get('auth_refresh')?.value if (access_token && refresh_token) { - await callByDevice('/api/auth/revoke', { + await callByUser('/api/auth/revoke', { access_token, refresh_token, })