@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.
- package/bundles/frontegg-angular.umd.js +7 -4
- package/bundles/frontegg-angular.umd.js.map +1 -1
- package/esm2015/lib/frontegg-auth.service.js +8 -3
- package/fesm2015/frontegg-angular.js +7 -2
- package/fesm2015/frontegg-angular.js.map +1 -1
- package/lib/frontegg-auth.service.d.ts +2 -1
- package/lib/frontegg-auth.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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', {
|
|
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); };
|