@frontegg/angular 6.13.0-alpha.7271975157 → 6.13.0-alpha.7275681333

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -659,13 +659,16 @@
659
659
  this.setLoginState = function (state) { return _this.dispatchAction('setLoginState', state); };
660
660
  this.resetLoginState = function () { return _this.dispatchAction('resetLoginState'); };
661
661
  this.requestAuthorize = function (firstTime) { return _this.dispatchAction('requestAuthorize', firstTime); };
662
- this.loginWithRedirect = function (params, shouldRedirectToLogin, firstTime) {
663
- if (shouldRedirectToLogin === void 0) { shouldRedirectToLogin = true; }
664
- if (firstTime === void 0) { firstTime = false; }
662
+ this.loginWithRedirect = function (params, shouldRedirectToLogin, firstTime, loginDirectAction) {
665
663
  if (_this.isHostedLoginCallbackRoute()) {
666
664
  return;
667
665
  }
668
- _this.dispatchAction('requestHostedLoginAuthorizeV2', { additionalParams: params, shouldRedirectToLogin: shouldRedirectToLogin, firstTime: firstTime });
666
+ _this.dispatchAction('requestHostedLoginAuthorizeV2', {
667
+ additionalParams: params,
668
+ shouldRedirectToLogin: shouldRedirectToLogin !== null && shouldRedirectToLogin !== void 0 ? shouldRedirectToLogin : true,
669
+ firstTime: firstTime !== null && firstTime !== void 0 ? firstTime : false,
670
+ loginDirectAction: loginDirectAction,
671
+ });
669
672
  _this.setState({ isLoading: true });
670
673
  };
671
674
  this.preLogin = function (payload) { return _this.dispatchAction('preLogin', payload); };