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();
try {
await api.delete(`/auth/${this.session.token}`);
} catch (error) {
return false;
} finally {
const token = this.session.token;
this.$patch({
session: undefined,
user: undefined,
});
await api.delete(`/auth/${token}`);
} catch (error) {
return false;
} finally {
SessionStorage.clear();
}
return true;