forked from coracle/flotilla
8dd278f47c
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com> Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
16 lines
359 B
TypeScript
16 lines
359 B
TypeScript
import {db, kv, ss} from "@app/core/storage"
|
|
import {deactivateCurrentPomadeSession} from "@app/util/pomade"
|
|
import {Push} from "@app/util/push"
|
|
|
|
export const logout = async () => {
|
|
await deactivateCurrentPomadeSession()
|
|
await Push.disable()
|
|
await kv.clear()
|
|
await ss.clear()
|
|
await db.clear()
|
|
|
|
localStorage.clear()
|
|
|
|
window.location.href = "/"
|
|
}
|