@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.
- package/bundles/frontegg-angular.umd.js +8 -5
- package/bundles/frontegg-angular.umd.js.map +1 -1
- package/esm2015/lib/frontegg-auth.service.js +8 -3
- package/esm2015/sdkVersion.js +2 -2
- package/fesm2015/frontegg-angular.js +8 -3
- 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 +2 -2
- package/CHANGELOG.md +0 -508
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
}]
|
|
358
358
|
}] });
|
|
359
359
|
|
|
360
|
-
var sdkVersion = { version: '6.
|
|
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', {
|
|
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); };
|