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