@lifeready/core 7.2.3 → 8.0.1
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/lifeready-core.umd.js +7 -9
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +2 -2
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -6
- package/esm2015/lib/auth/auth.gql.private.js +1 -1
- package/esm2015/lib/auth/auth.service.js +5 -3
- package/esm2015/lib/auth/auth.types.js +1 -3
- package/esm2015/lib/plan/plan.types.js +1 -1
- package/fesm2015/lifeready-core.js +6 -11
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
- package/lib/api/types/lr-graphql.types.d.ts +2 -9
- package/lib/auth/auth.gql.private.d.ts +3 -3
- package/lib/auth/auth.types.d.ts +3 -2
- package/lib/plan/plan.types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -2670,7 +2670,7 @@
|
|
|
2670
2670
|
this.ngZone = ngZone;
|
|
2671
2671
|
this.keyGraph = keyGraph;
|
|
2672
2672
|
}
|
|
2673
|
-
TpPasswordResetProcessorService.prototype.
|
|
2673
|
+
TpPasswordResetProcessorService.prototype.processTpPasswordResetUser = function (node) {
|
|
2674
2674
|
var _a;
|
|
2675
2675
|
return __awaiter(this, void 0, void 0, function () {
|
|
2676
2676
|
var pxk, _b, ret, _c;
|
|
@@ -3861,10 +3861,6 @@
|
|
|
3861
3861
|
LinkTypeField["HARD"] = "HARD";
|
|
3862
3862
|
LinkTypeField["SOFT"] = "SOFT";
|
|
3863
3863
|
})(exports.LinkTypeField || (exports.LinkTypeField = {}));
|
|
3864
|
-
(function (BillingPeriodField) {
|
|
3865
|
-
BillingPeriodField["MONTHLY"] = "MONTHLY";
|
|
3866
|
-
BillingPeriodField["ANNUAL"] = "ANNUAL";
|
|
3867
|
-
})(exports.BillingPeriodField || (exports.BillingPeriodField = {}));
|
|
3868
3864
|
(function (PlanStateField) {
|
|
3869
3865
|
PlanStateField["TRIALLING"] = "TRIALLING";
|
|
3870
3866
|
PlanStateField["ACTIVE"] = "ACTIVE";
|
|
@@ -6569,7 +6565,7 @@
|
|
|
6569
6565
|
};
|
|
6570
6566
|
AuthService.prototype.loadRegularUser = function (cognitoUser, password) {
|
|
6571
6567
|
return __awaiter(this, void 0, void 0, function () {
|
|
6572
|
-
var currentUser, username, userAttributes;
|
|
6568
|
+
var currentUser, id, username, userAttributes;
|
|
6573
6569
|
return __generator(this, function (_b) {
|
|
6574
6570
|
switch (_b.label) {
|
|
6575
6571
|
case 0: return [4 /*yield*/, this.fetchCurrentUser()];
|
|
@@ -6587,11 +6583,12 @@
|
|
|
6587
6583
|
case 3:
|
|
6588
6584
|
// Regular user populates all keys
|
|
6589
6585
|
_b.sent();
|
|
6590
|
-
username = currentUser.username;
|
|
6586
|
+
id = currentUser.id, username = currentUser.username;
|
|
6591
6587
|
return [4 /*yield*/, this.cognito.userAttributes(cognitoUser)];
|
|
6592
6588
|
case 4:
|
|
6593
6589
|
userAttributes = _b.sent();
|
|
6594
6590
|
return [2 /*return*/, {
|
|
6591
|
+
id: id,
|
|
6595
6592
|
username: username,
|
|
6596
6593
|
sub: this.getCognitoUserAttribute('sub', userAttributes),
|
|
6597
6594
|
loginEmail: this.getCognitoUserAttribute('email', userAttributes),
|
|
@@ -6789,13 +6786,13 @@
|
|
|
6789
6786
|
};
|
|
6790
6787
|
AuthService.prototype.debugLoadUser = function (password) {
|
|
6791
6788
|
return __awaiter(this, void 0, void 0, function () {
|
|
6792
|
-
var currentUser, username, currentUserKey, passKey, masterKey;
|
|
6789
|
+
var currentUser, id, username, currentUserKey, passKey, masterKey;
|
|
6793
6790
|
return __generator(this, function (_b) {
|
|
6794
6791
|
switch (_b.label) {
|
|
6795
6792
|
case 0: return [4 /*yield*/, this.fetchCurrentUser()];
|
|
6796
6793
|
case 1:
|
|
6797
6794
|
currentUser = _b.sent();
|
|
6798
|
-
username = currentUser.username, currentUserKey = currentUser.currentUserKey;
|
|
6795
|
+
id = currentUser.id, username = currentUser.username, currentUserKey = currentUser.currentUserKey;
|
|
6799
6796
|
return [4 /*yield*/, this.keyFactoryService.derivePassKey(Object.assign({ password: password }, currentUserKey.passKey.passKeyParams))];
|
|
6800
6797
|
case 2:
|
|
6801
6798
|
passKey = (_b.sent()).jwk;
|
|
@@ -6809,6 +6806,7 @@
|
|
|
6809
6806
|
case 5:
|
|
6810
6807
|
_b.sent();
|
|
6811
6808
|
this.user = {
|
|
6809
|
+
id: id,
|
|
6812
6810
|
username: username,
|
|
6813
6811
|
resetUser: null,
|
|
6814
6812
|
sub: 'DEBUG_MODE',
|