Skip to content

Commit

Permalink
fix(loopback): add accessToken to logout method
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Mar 29, 2018
1 parent d56d8b8 commit 4bac1b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion template/client/store/modules/auth/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export function signIn({commit, dispatch, state}, {email, password}) {
*/
export function signOut({commit}) {
return loopback
.post('/Accounts/logout')
.post('/Accounts/logout', {
accessToken: state['access_token'],
})
.then(() => {
commit('setAccessToken', null);
loopback.removeToken();
Expand Down

0 comments on commit 4bac1b6

Please sign in to comment.