forked from coracle/flotilla
Rename app utils
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import {db, kv, ss} from "@app/core/storage"
|
||||
import {deactivateCurrentPomadeSession} from "@app/pomade"
|
||||
import {Push} from "@app/push"
|
||||
|
||||
export const logout = async () => {
|
||||
await deactivateCurrentPomadeSession()
|
||||
await Push.disable()
|
||||
await kv.clear()
|
||||
await ss.clear()
|
||||
await db.clear()
|
||||
|
||||
localStorage.clear()
|
||||
|
||||
window.location.href = "/"
|
||||
}
|
||||
Reference in New Issue
Block a user