diff --git a/frontend/store/auth.js b/frontend/store/auth.js index 6ac1a3e4..bf93518f 100644 --- a/frontend/store/auth.js +++ b/frontend/store/auth.js @@ -42,8 +42,8 @@ export const actions = { commit('setAuthenticated', false) } }, - logout({ commit }) { - this.$services.auth.logout() + async logout({ commit }) { + await this.$services.auth.logout() commit('setAuthenticated', false) commit('clearUsername') }