@frontegg/angular 6.11.0 → 6.12.0-alpha.7369364883

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.
@@ -357,7 +357,7 @@
357
357
  }]
358
358
  }] });
359
359
 
360
- var sdkVersion = { version: '6.11.0' };
360
+ var sdkVersion = { version: '6.12.0' };
361
361
 
362
362
  var FronteggAppOptionsClass = /** @class */ (function () {
363
363
  function FronteggAppOptionsClass() {
@@ -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); };