From edadc7f86a50d5d1f28d1d6c69caa60aeabdb261 Mon Sep 17 00:00:00 2001 From: Amir Ghezelbash Date: Tue, 19 Sep 2023 17:32:09 +0300 Subject: [PATCH] feat: Enhance Authorization URL for Improved Security (WPB-1343) --- src/authorize/authorize.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/authorize/authorize.ts b/src/authorize/authorize.ts index 769e9be..04d7d4b 100644 --- a/src/authorize/authorize.ts +++ b/src/authorize/authorize.ts @@ -26,9 +26,8 @@ async function redirectToAuthorize(): Promise { url.searchParams.append("scope", scope); url.searchParams.append("code_challenge_method", codeChallengeMethod); url.searchParams.append("code_challenge", codeChallenge); - url.hash = "authorize"; - window.location.href = url.href; + window.location.href = url.href.replace("/auth?", "/auth/#/login?"); } function generateRandomState(): string {