From bdca8410204812f8fcb6036478f8da7145c07366 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 18 Jan 2024 15:12:26 +0100 Subject: [PATCH] fix: full page reload on 302 response --- .gitignore | 2 ++ src/App.vue | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index a1243acede6..b21650280d8 100644 --- a/.gitignore +++ b/.gitignore @@ -84,6 +84,8 @@ typings/ !.yarn/sdks !.yarn/versions +.vite + fakeNodes.json /build/ \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 611b1a7b4a0..484b39ad495 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1124,6 +1124,12 @@ export default { this.startSocket() } } catch (error) { + // in case of a redirect (302) trigger a page reload + // needed to fix external auth issues #3427 + if (error.response?.status === 302) { + location.reload() + return + } setTimeout(() => (this.error = error.message), 1000) log.error(error) }