forked from coracle/flotilla
Use secure storage for session data
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {kv, db} from "@app/core/storage"
|
||||
import {db, kv, ss} from "@app/core/storage"
|
||||
import {Push} from "@app/util/notifications"
|
||||
import {deactivateCurrentPomadeSession} from "@app/util/pomade"
|
||||
|
||||
@@ -6,6 +6,7 @@ export const logout = async () => {
|
||||
await deactivateCurrentPomadeSession()
|
||||
await Push.disable()
|
||||
await kv.clear()
|
||||
await ss.clear()
|
||||
await db.clear()
|
||||
|
||||
localStorage.clear()
|
||||
|
||||
Reference in New Issue
Block a user