Skip to content

Commit

Permalink
Merge pull request #30 from wireapp/feat/WPB-1343
Browse files Browse the repository at this point in the history
feat: Enhance Authorization URL for Improved Security (WPB-1343)
  • Loading branch information
dkovacevic authored Sep 20, 2023
2 parents f30813e + edadc7f commit 58d1f81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/authorize/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ async function redirectToAuthorize(): Promise<void> {
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 {
Expand Down

0 comments on commit 58d1f81

Please sign in to comment.