Skip to content

Commit

Permalink
fix: cleanCode function return cleanedUrl.href instead of cleanedUrl.…
Browse files Browse the repository at this point in the history
…toString()
  • Loading branch information
RaymondSanders committed Mar 6, 2023
1 parent 84af5ae commit efc35a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function cleanCode(url: string): string {
cleanedUrl.searchParams.delete("code");
cleanedUrl.searchParams.delete("state");
LogUtil.debug("Cleaning Code parameter from URL", url, cleanedUrl);
return cleanedUrl.toString();
return cleanedUrl.href;
}

export function cleanUrl(): void {
Expand Down

0 comments on commit efc35a3

Please sign in to comment.