Skip to content

Commit 681768f

Browse files
committed
comply with new backend login
1 parent 7e1f5f5 commit 681768f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/auth/logOut.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
import Axios from 'axios';
33

44
export const logOut = async () => {
5-
await Axios.delete('/auth/access_revoke');
6-
await Axios.delete('/auth/refresh_revoke');
5+
await Axios.post('/auth/logout', {
6+
access_token: localStorage.getItem(process.env.VUE_APP_ACCESS_TOKEN),
7+
refresh_token: localStorage.getItem(process.env.VUE_APP_REFRESH_TOKEN),
8+
});
79
localStorage.removeItem(process.env.VUE_APP_ACCESS_TOKEN);
810
localStorage.removeItem(process.env.VUE_APP_REFRESH_TOKEN);
911
localStorage.removeItem(process.env.VUE_APP_VUEX_PERSISTED_STATE);

0 commit comments

Comments
 (0)