From 9db9041048e09359e1a27edaf5bdb5470436d634 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Sat, 12 Jul 2025 22:56:56 +0200 Subject: [PATCH] fix: remove unused functions --- composables/auth.ts | 2 +- layouts/auth.vue | 24 ------------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/composables/auth.ts b/composables/auth.ts index e3a2fa2..bceecb3 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -44,7 +44,7 @@ export const useAuth = () => { await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" }); clearAuth(); - return await navigateTo("/login"); + return await navigateTo("/login"); } async function revoke(password: string) { diff --git a/layouts/auth.vue b/layouts/auth.vue index 0c4ad41..95eca49 100644 --- a/layouts/auth.vue +++ b/layouts/auth.vue @@ -88,30 +88,6 @@ async function selectInstance(e: Event) { const form = reactive({ password: "" }); - -async function logout(e: Event) { - e.preventDefault(); - await auth.logout(form.password); - console.log("logout"); -} - -async function refresh(e: Event) { - e.preventDefault(); - await auth.refresh(); - console.log("refreshed"); -} - -async function getUser(e: Event) { - e.preventDefault(); - await auth.getUser(); - console.log("user:", auth.user.value); -} - -async function showUser(e: Event) { - e.preventDefault(); - console.log("user:", auth.user.value); -} -