From d47948fb7bb31b480aef979d0f8aa53b5e650a6a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 27 Jan 2021 12:50:14 +0000 Subject: [PATCH] Improve SSO auth flow Use replaceState instead of a redirect to strip the loginToken Put user into the same post-auth flows of E2ESetup Skip UIA prompt in this post-auth flow, happy path is a server grace period --- src/vector/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/app.tsx b/src/vector/app.tsx index 61eef52215..9df1d8c6c4 100644 --- a/src/vector/app.tsx +++ b/src/vector/app.tsx @@ -124,7 +124,7 @@ function onTokenLoginCompleted() { parsedUrl.search = ""; const formatted = url.format(parsedUrl); console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`); - window.location.href = formatted; + window.history.replaceState(null, "", formatted); } export async function loadApp(fragParams: {}) {