@trudb/tru-common-lib 0.0.707 → 0.0.708
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.
|
@@ -3722,12 +3722,12 @@ class TruAuth {
|
|
|
3722
3722
|
let jwtData = this.auth.getDecodedJwtJsonData();
|
|
3723
3723
|
console.log(jwtData);
|
|
3724
3724
|
let user = {
|
|
3725
|
-
activeUserRef:
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
roles: []
|
|
3725
|
+
activeUserRef: jwtData.UserRef,
|
|
3726
|
+
firstName: jwtData.FirstName,
|
|
3727
|
+
lastName: jwtData.LastName,
|
|
3728
|
+
email: jwtData.Email,
|
|
3729
|
+
username: jwtData['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'],
|
|
3730
|
+
roles: jwtData['http://schemas.microsoft.com/ws/2008/06/identity/claims/role']
|
|
3731
3731
|
};
|
|
3732
3732
|
this.user.create(user);
|
|
3733
3733
|
}
|