Skip to content

Commit

Permalink
feat: Use location.assign instead of location.replace for `signin…
Browse files Browse the repository at this point in the history
…_redirect` (#52)
  • Loading branch information
nighca authored Oct 30, 2024
1 parent 938f531 commit 5366a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class Sdk {
}

public async signin_redirect(additionalParams?: IObject): Promise<void> {
window.location.replace(this.pkce.authorizeUrl(additionalParams));
window.location.assign(this.pkce.authorizeUrl(additionalParams));
}

public async exchangeForAccessToken(additionalParams?: IObject): Promise<ITokenResponse> {
Expand Down

0 comments on commit 5366a61

Please sign in to comment.