Skip to content

Commit fcf2b8d

Browse files
committed
frontend: perform token refresh when you have connectivity again
Issue: #4898
1 parent 16c669d commit fcf2b8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export default {
5151
offlineListener() {
5252
this.offline = true
5353
},
54-
onlineListener() {
54+
async onlineListener() {
5555
this.offline = false
56+
await this.$auth.initRefresh()
5657
},
5758
async visibilityChangeListener() {
5859
if (document.visibilityState !== 'visible') {

0 commit comments

Comments
 (0)