Skip to content

Commit 3575b6a

Browse files
committed
Catch exceptions on auth
1 parent ab27551 commit 3575b6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
domain = res.domain;
9393
token = res;
9494
}
95+
}).catch((err) => {
96+
console.log(err);
9597
});
9698
} else {
9799
console.log('stored auth');
@@ -110,6 +112,7 @@
110112
console.log('revoked token');
111113
console.log(res);
112114
token = null;
115+
delete(AUTHORIZATION_CONFIG.domain);
113116
});
114117
}
115118

0 commit comments

Comments
 (0)