Compare commits

...

2 Commits

Author SHA1 Message Date
Ferdinand Thiessen ec28857af5 chore(deps): Update dependencies
continuous-integration/woodpecker the build was successful Details
2021-12-23 03:21:33 +01:00
Ferdinand Thiessen 1c452e23fe fix(api): Ensure everything is cleared on logout 2021-12-23 03:20:34 +01:00
2 changed files with 13 additions and 10 deletions

View File

@ -4,7 +4,7 @@ import { AxiosResponse } from 'axios';
import { api } from '../internal'; import { api } from '../internal';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { PersistentStorage } from '../utils/persistent'; import { PersistentStorage } from '../utils/persistent';
import { LocalStorage, SessionStorage } from 'quasar';
function reviveSession() { function reviveSession() {
return PersistentStorage.get<FG.Session>('fg_session').then((s) => fixSession(s || undefined)); return PersistentStorage.get<FG.Session>('fg_session').then((s) => fixSession(s || undefined));
} }
@ -154,6 +154,8 @@ export const useMainStore = defineStore({
handleLoggedOut() { handleLoggedOut() {
this.$reset(); this.$reset();
void clearPersistant(); void clearPersistant();
LocalStorage.clear();
SessionStorage.clear();
}, },
}, },
}); });

View File

@ -17,29 +17,30 @@
"dependencies": { "dependencies": {
"@flaschengeist/api": "file:./api", "@flaschengeist/api": "file:./api",
"@flaschengeist/users": "^1.0.0-alpha.3", "@flaschengeist/users": "^1.0.0-alpha.3",
"@flaschengeist/schedule": "^1.0.0-alpha.6",
"axios": "^0.24.0", "axios": "^0.24.0",
"pinia": "^2.0.6", "pinia": "^2.0.8",
"quasar": "^2.3.3" "quasar": "^2.3.4"
}, },
"devDependencies": { "devDependencies": {
"@capacitor/core": "^3.3.2", "@capacitor/core": "^3.3.3",
"@capacitor/storage": "^1.2.3", "@capacitor/storage": "^1.2.3",
"@flaschengeist/types": "^1.0.0-alpha.10", "@flaschengeist/types": "^1.0.0-alpha.10",
"@quasar/app": "^3.2.4", "@quasar/app": "^3.2.5",
"@quasar/extras": "^1.12.2", "@quasar/extras": "^1.12.2",
"@types/node": "^14.18.0", "@types/node": "^14.18.0",
"@types/webpack": "^5.28.0", "@types/webpack": "^5.28.0",
"@types/webpack-env": "^1.16.3", "@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.5.0", "@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.5.0", "@typescript-eslint/parser": "^5.8.0",
"eslint": "^8.4.0", "eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.1.1", "eslint-plugin-vue": "^8.2.0",
"eslint-webpack-plugin": "^3.1.1", "eslint-webpack-plugin": "^3.1.1",
"modify-source-webpack-plugin": "^3.0.0", "modify-source-webpack-plugin": "^3.0.0",
"prettier": "^2.5.1", "prettier": "^2.5.1",
"typescript": "^4.5.2", "typescript": "^4.5.4",
"vuedraggable": "^4.1.0" "vuedraggable": "^4.1.0"
}, },
"prettier": { "prettier": {