We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e1f5f5 commit 681768fCopy full SHA for 681768f
frontend/src/auth/logOut.js
@@ -2,8 +2,10 @@
2
import Axios from 'axios';
3
4
export const logOut = async () => {
5
- await Axios.delete('/auth/access_revoke');
6
- await Axios.delete('/auth/refresh_revoke');
+ await Axios.post('/auth/logout', {
+ access_token: localStorage.getItem(process.env.VUE_APP_ACCESS_TOKEN),
7
+ refresh_token: localStorage.getItem(process.env.VUE_APP_REFRESH_TOKEN),
8
+ });
9
localStorage.removeItem(process.env.VUE_APP_ACCESS_TOKEN);
10
localStorage.removeItem(process.env.VUE_APP_REFRESH_TOKEN);
11
localStorage.removeItem(process.env.VUE_APP_VUEX_PERSISTED_STATE);
0 commit comments