mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
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
This commit is contained in:
parent
089afaad93
commit
d47948fb7b
@ -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: {}) {
|
||||
|
Loading…
Reference in New Issue
Block a user