[core] call api.delete(`auth/${token}`) within a valid session

fixes: #7
This commit is contained in:
groegert 2021-05-21 10:17:56 +02:00
parent 0873b2da22
commit f2b7f3a3b4
1 changed files with 1 additions and 1 deletions

View File

@ -80,11 +80,11 @@ export const useMainStore = defineStore({
try {
const token = this.session.token;
await api.delete(`/auth/${token}`);
this.$patch({
session: undefined,
user: undefined,
});
await api.delete(`/auth/${token}`);
} catch (error) {
return false;
} finally {