Skip to content

Commit

Permalink
Include cookies in logout request to API endpoint (usdigitalresponse#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhyndman authored and replicantSocks committed Sep 1, 2023
1 parent cf2ab3c commit dabb1ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/arpa_reporter/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ export default new Vuex.Store({
dispatch('updateUsersRoles'),
]);
},
logout({ commit }) {
fetch(apiURL('/api/sessions/logout')).then(() => commit('setUser', null));
async logout({ commit }) {
await get(apiURL('/api/sessions/logout'));
commit('setUser', null);
},
setViewPeriodID({ commit }, period_id) {
commit('setViewPeriodID', period_id);
Expand Down

0 comments on commit dabb1ba

Please sign in to comment.