fix: auth states not updating.

This commit is contained in:
Darshan
2025-03-03 12:25:31 +05:30
parent 61bc0ad380
commit 6287f15f4e
@@ -13,6 +13,8 @@
import type { Models } from '@appwrite.io/console';
import { project } from '../../store';
import { base } from '$app/paths';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
const projectId = $page.params.project;
let showProvider = false;
@@ -30,6 +32,7 @@
method: box.method,
value: box.value
});
invalidate(Dependencies.PROJECT);
} catch (error) {
box.value = !box.value;
addNotification({