From bf224a7598be411f6de1361ba11bc6e6daffbc9a Mon Sep 17 00:00:00 2001 From: Hanxing Yang Date: Tue, 29 Oct 2024 17:26:24 +0800 Subject: [PATCH] fix: Use `location.assign` instead of `location.replace` --- src/sdk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk.ts b/src/sdk.ts index ce797b0..071a6b1 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -325,7 +325,7 @@ class Sdk { } public async signin_redirect(additionalParams?: IObject): Promise { - window.location.replace(this.pkce.authorizeUrl(additionalParams)); + window.location.assign(this.pkce.authorizeUrl(additionalParams)); } public async exchangeForAccessToken(additionalParams?: IObject): Promise {