Skip to content

Commit 90ca53b

Browse files
committed
revoked refresh token logout fix
1 parent 3dbe05e commit 90ca53b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

frontend/src/views/auth/SignOut.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44

55
<script>
66
7+
/* eslint-disable no-empty */
8+
79
export default {
810
name: 'SignOut',
911
async mounted() {
10-
await this.$http.post('/auth/logout', {
11-
access_token: localStorage.getItem(process.env.VUE_APP_ACCESS_TOKEN),
12-
refresh_token: localStorage.getItem(process.env.VUE_APP_REFRESH_TOKEN),
13-
});
12+
try {
13+
await this.$http.post('/auth/logout', {
14+
access_token: localStorage.getItem(process.env.VUE_APP_ACCESS_TOKEN),
15+
refresh_token: localStorage.getItem(process.env.VUE_APP_REFRESH_TOKEN),
16+
});
17+
} catch (e) {}
1418
localStorage.removeItem(process.env.VUE_APP_ACCESS_TOKEN);
1519
localStorage.removeItem(process.env.VUE_APP_REFRESH_TOKEN);
1620
localStorage.removeItem(process.env.VUE_APP_VUEX_PERSISTED_STATE);

0 commit comments

Comments
 (0)