@chemmangat/msal-next 5.3.1 → 5.3.3
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1582,6 +1582,8 @@ function useUserProfile() {
|
|
|
1582
1582
|
console.debug("[UserProfile] Photo not available");
|
|
1583
1583
|
}
|
|
1584
1584
|
const profileData = {
|
|
1585
|
+
...userData,
|
|
1586
|
+
// spread first so explicit fields below always take precedence
|
|
1585
1587
|
id: userData.id,
|
|
1586
1588
|
displayName: userData.displayName,
|
|
1587
1589
|
givenName: userData.givenName,
|
|
@@ -1617,9 +1619,8 @@ function useUserProfile() {
|
|
|
1617
1619
|
accountEnabled: userData.accountEnabled,
|
|
1618
1620
|
ageGroup: userData.ageGroup,
|
|
1619
1621
|
userType: userData.userType,
|
|
1620
|
-
photo: photoUrl
|
|
1621
|
-
|
|
1622
|
-
// Include any additional fields from the API
|
|
1622
|
+
photo: photoUrl
|
|
1623
|
+
// always last — blob URL must never be overwritten by raw API data
|
|
1623
1624
|
};
|
|
1624
1625
|
profileCache.set(cacheKey, {
|
|
1625
1626
|
data: profileData,
|
package/dist/index.mjs
CHANGED
|
@@ -1523,6 +1523,8 @@ function useUserProfile() {
|
|
|
1523
1523
|
console.debug("[UserProfile] Photo not available");
|
|
1524
1524
|
}
|
|
1525
1525
|
const profileData = {
|
|
1526
|
+
...userData,
|
|
1527
|
+
// spread first so explicit fields below always take precedence
|
|
1526
1528
|
id: userData.id,
|
|
1527
1529
|
displayName: userData.displayName,
|
|
1528
1530
|
givenName: userData.givenName,
|
|
@@ -1558,9 +1560,8 @@ function useUserProfile() {
|
|
|
1558
1560
|
accountEnabled: userData.accountEnabled,
|
|
1559
1561
|
ageGroup: userData.ageGroup,
|
|
1560
1562
|
userType: userData.userType,
|
|
1561
|
-
photo: photoUrl
|
|
1562
|
-
|
|
1563
|
-
// Include any additional fields from the API
|
|
1563
|
+
photo: photoUrl
|
|
1564
|
+
// always last — blob URL must never be overwritten by raw API data
|
|
1564
1565
|
};
|
|
1565
1566
|
profileCache.set(cacheKey, {
|
|
1566
1567
|
data: profileData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chemmangat/msal-next",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Production-ready Microsoft/Azure AD authentication for Next.js App Router. Zero-config setup, TypeScript-first, multi-account support, auto token refresh. The easiest way to add Microsoft login to your Next.js app.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|