feat: implement logout on frontend

This commit is contained in:
mrjvs
2026-08-09 17:36:46 +02:00
parent 88ec0b9c53
commit af81080e7b
2 changed files with 12 additions and 6 deletions

View File

@@ -65,9 +65,14 @@ export function useAuthStore() {
}
}
function logout() {
set(null);
}
return {
getToken,
refresh,
set
set,
logout,
};
}