From 1c452e23fec83b05af05c1e803c71a3a09712eb9 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 23 Dec 2021 03:20:34 +0100 Subject: [PATCH] fix(api): Ensure everything is cleared on logout --- api/src/stores/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/stores/main.ts b/api/src/stores/main.ts index af97178..d3f8038 100644 --- a/api/src/stores/main.ts +++ b/api/src/stores/main.ts @@ -4,7 +4,7 @@ import { AxiosResponse } from 'axios'; import { api } from '../internal'; import { defineStore } from 'pinia'; import { PersistentStorage } from '../utils/persistent'; - +import { LocalStorage, SessionStorage } from 'quasar'; function reviveSession() { return PersistentStorage.get('fg_session').then((s) => fixSession(s || undefined)); } @@ -154,6 +154,8 @@ export const useMainStore = defineStore({ handleLoggedOut() { this.$reset(); void clearPersistant(); + LocalStorage.clear(); + SessionStorage.clear(); }, }, });