@shieldiot/ngx-pulseiot-lib 2.20.1340 → 2.20.1341
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.
|
@@ -3890,9 +3890,9 @@ class MaliciousIPData {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
}
|
|
3892
3892
|
|
|
3893
|
-
// TokenData model represents user
|
|
3893
|
+
// TokenData model represents user info encrypted with the JWT token
|
|
3894
3894
|
class TokenData {
|
|
3895
|
-
constructor(accountId, subjectId, subjectType,
|
|
3895
|
+
constructor(accountId, subjectId, subjectType, subjectRole, status, expiresIn) {
|
|
3896
3896
|
if (accountId !== undefined) {
|
|
3897
3897
|
this.accountId = accountId;
|
|
3898
3898
|
}
|
|
@@ -3902,8 +3902,8 @@ class TokenData {
|
|
|
3902
3902
|
if (subjectType !== undefined) {
|
|
3903
3903
|
this.subjectType = subjectType;
|
|
3904
3904
|
}
|
|
3905
|
-
if (
|
|
3906
|
-
this.
|
|
3905
|
+
if (subjectRole !== undefined) {
|
|
3906
|
+
this.subjectRole = subjectRole;
|
|
3907
3907
|
}
|
|
3908
3908
|
if (status !== undefined) {
|
|
3909
3909
|
this.status = status;
|