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, })