[core] call api.delete(`auth/${token}`) within a valid session
fixes: #7
This commit is contained in:
parent
0873b2da22
commit
f2b7f3a3b4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue