@cloudbase/auth 2.25.6 → 2.25.8

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/src/index.ts CHANGED
@@ -2507,7 +2507,7 @@ class Auth {
2507
2507
  locale: userInfo?.locale,
2508
2508
  // V2 API 兼容(使用 any 避免类型错误)
2509
2509
  uid: userInfo.uid,
2510
- nickName: userInfo.nickName,
2510
+ nickName: userInfo.nickName || userInfo?.name,
2511
2511
  avatarUrl: userInfo.avatarUrl || userInfo.picture,
2512
2512
  location: userInfo.location,
2513
2513
  hasPassword: userInfo.hasPassword,