Skip to content

Commit

Permalink
strange caching
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-nettica committed Jun 30, 2024
1 parent e82fa32 commit 1251f19
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
mounted() {
if (this.$route && this.$route.query && this.$route.query.referer) {
let r = TokenService.getReferer()
if (r == null) {
TokenService.saveReferer(this.$route.query.referer)
console.log("saved referer ", this.$route.query.referer );
TokenService.destroyToken() // force a token exchange
this.isAuthenticated = false
}
}
if (this.$route && this.$route.query && this.$route.query.server &&
this.$route.query.code && this.$route.query.state && this.$route.query.client_id) {
exchange({
Expand All @@ -76,10 +85,6 @@
return;
}
if (this.$route && this.$route.query && this.$route.query.referer) {
TokenService.saveReferer(this.$route.query.referer)
console.log("saved referer ", this.$route.query.referer );
}
if (this.requiresAuth || location.pathname == "/") {
if (this.isAuthenticated == false) {
if (this.$route.query.code && this.$route.query.state) {
Expand Down

0 comments on commit 1251f19

Please sign in to comment.