diff --git a/sdk/src/platform/Platform.ts b/sdk/src/platform/Platform.ts index e8677ac..eb653e6 100644 --- a/sdk/src/platform/Platform.ts +++ b/sdk/src/platform/Platform.ts @@ -358,7 +358,7 @@ export default class Platform extends EventEmitter { height = 600, origin = window.location.origin, property = Constants.authResponseProperty, - target = '_blank', + target = '_self', }: LoginWindowOptions): Promise { // clear check last timeout when user open loginWindow twice to avoid leak this._clearLoginWindowCheckTimeout(); @@ -378,7 +378,7 @@ export default class Platform extends EventEmitter { const win = window.open( url, - '_blank', + '_self', target === '_blank' ? `scrollbars=yes, status=yes, width=${width}, height=${height}, left=${left}, top=${top}` : '',