From 79367872ac0f4acf61641c4468fc0951d68316c1 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Thu, 25 Sep 2025 14:55:07 -0500 Subject: [PATCH] fix: Remove Double Cookie Refresh (#6242) --- frontend/composables/useMealieAuth.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/composables/useMealieAuth.ts b/frontend/composables/useMealieAuth.ts index 41e3a63c4..6e73c1a0d 100644 --- a/frontend/composables/useMealieAuth.ts +++ b/frontend/composables/useMealieAuth.ts @@ -37,11 +37,6 @@ export const useMealieAuth = function () { { immediate: true }, ); - async function signIn(...params: Parameters) { - await auth.signIn(...params); - refreshCookie(useRuntimeConfig().public.AUTH_TOKEN); - } - async function oauthSignIn() { const params = new URLSearchParams(window.location.search); const { data: token } = await $axios.get<{ access_token: string; token_type: "bearer" }>("/api/auth/oauth/callback", { params }); @@ -52,7 +47,7 @@ export const useMealieAuth = function () { return { user, loggedIn, - signIn, + signIn: auth.signIn, signOut: auth.signOut, signUp: auth.signUp, refresh: auth.refresh,