fix: clear cached recipe actions on logout to prevent cross-user leak (#7815)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
Ivan Bondarenko
2026-07-02 19:52:15 +02:00
committed by GitHub
parent 87468de8b6
commit 3ddb47ac02
9 changed files with 71 additions and 7 deletions

View File

@@ -4,6 +4,11 @@ import type { GroupBase, GroupInDB, GroupSummary } from "~/lib/api/types/user";
const groupSelfRef = ref<GroupSummary | null>(null);
const loading = ref(false);
export function resetGroupSelf() {
groupSelfRef.value = null;
loading.value = false;
}
export const useGroupSelf = function () {
const api = useUserApi();
const auth = useMealieAuth();