fix: allow logout if auto login if enabled

This commit is contained in:
henrygd
2025-03-05 23:36:57 -05:00
parent 0619eabec2
commit c8130a10d4
2 changed files with 6 additions and 3 deletions

View File

@@ -77,6 +77,7 @@ export const updateSystemList = (() => {
/** Logs the user out by clearing the auth store and unsubscribing from realtime updates. */
export async function logOut() {
sessionStorage.setItem("lo", "t")
pb.authStore.clear()
pb.realtime.unsubscribe()
}