Skip to content

Commit 4bac1b6

Browse files
author
Walker Leite
committed
fix(loopback): add accessToken to logout method
1 parent d56d8b8 commit 4bac1b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/client/store/modules/auth/actions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export function signIn({commit, dispatch, state}, {email, password}) {
7373
*/
7474
export function signOut({commit}) {
7575
return loopback
76-
.post('/Accounts/logout')
76+
.post('/Accounts/logout', {
77+
accessToken: state['access_token'],
78+
})
7779
.then(() => {
7880
commit('setAccessToken', null);
7981
loopback.removeToken();

0 commit comments

Comments
 (0)