@asgardeo/javascript 0.2.17 → 0.3.0
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/dist/index.js
CHANGED
|
@@ -600,12 +600,7 @@ var extractUserClaimsFromIdToken = (payload) => {
|
|
|
600
600
|
protocolClaims.forEach((claim) => {
|
|
601
601
|
delete filteredPayload[claim];
|
|
602
602
|
});
|
|
603
|
-
|
|
604
|
-
Object.entries(filteredPayload).forEach(([key, value]) => {
|
|
605
|
-
const camelCasedKey = key.split("_").map((part, i) => i === 0 ? part : part[0].toUpperCase() + part.slice(1)).join("");
|
|
606
|
-
userClaims[camelCasedKey] = value;
|
|
607
|
-
});
|
|
608
|
-
return userClaims;
|
|
603
|
+
return filteredPayload;
|
|
609
604
|
};
|
|
610
605
|
var extractUserClaimsFromIdToken_default = extractUserClaimsFromIdToken;
|
|
611
606
|
|