forked from coracle/flotilla
16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
import {db, kv, ss} 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 ss.clear()
|
|
await db.clear()
|
|
|
|
localStorage.clear()
|
|
|
|
window.location.href = "/"
|
|
}
|