Files
flotilla/src/app/util/logout.ts
T
2026-03-09 21:12:37 -07:00

15 lines
345 B
TypeScript

import {kv, db} from "@app/core/storage"
import {Push} from "@app/util/notifications"
import {deactivateCurrentPomadeSession} from "@app/util/pomade"
export const logout = async () => {
await deactivateCurrentPomadeSession()
await Push.disable()
await kv.clear()
await db.clear()
localStorage.clear()
window.location.href = "/"
}