mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-23 09:07:40 -05:00
fix: fixed cookie refresh logic
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user