fix: fixed cookie refresh logic

This commit is contained in:
mrjvs
2026-08-19 19:52:47 +02:00
parent ed61541e1e
commit 4cabaffaef

View File

@@ -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) {