From 4cabaffaef42e2cae9dd37371e11eb762f5a64dc Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 19 Aug 2026 19:52:47 +0200 Subject: [PATCH] fix: fixed cookie refresh logic --- src/stores/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/auth.ts b/src/stores/auth.ts index e7391f3..22e5c39 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -58,9 +58,9 @@ export function useAuthStore() { function refresh() { authState.value = authState.value; - accessTokenCookie.value = accessTokenCookie.value; - refreshTokenCookie.value = refreshTokenCookie.value; - tokenTypeCookie.value = tokenTypeCookie.value; + accessTokenCookie.value = authState.value?.accessToken ?? null; + refreshTokenCookie.value = authState.value?.refreshToken ?? null; + tokenTypeCookie.value = authState.value ? oldCookieTokenType : null; } function set(val: AuthState | null) {