@cloudbase/auth 3.0.2 → 3.0.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/cjs/index.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/miniprogram/index.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -1
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,
|