release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 5 additions and 4 deletions
Showing only changes of commit b8531ad816 - Show all commits

View File

@ -94,14 +94,15 @@ export const useMainStore = defineStore({
LocalStorage.clear(); LocalStorage.clear();
try { try {
await api.delete(`/auth/${this.session.token}`); const token = this.session.token;
} catch (error) {
return false;
} finally {
this.$patch({ this.$patch({
session: undefined, session: undefined,
user: undefined, user: undefined,
}); });
await api.delete(`/auth/${token}`);
} catch (error) {
return false;
} finally {
SessionStorage.clear(); SessionStorage.clear();
} }
return true; return true;