mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 18:56:17 +01:00
fix: allow logout if auto login if enabled
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user