@cloudbase/auth 3.3.6 → 3.3.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/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +3 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/miniprogram/index.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/auth",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "cloudbase javascript sdk auth componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@cloudbase/adapter-wx_mp": "^1.3.1",
|
|
35
|
-
"@cloudbase/oauth": "3.3.
|
|
36
|
-
"@cloudbase/utilities": "3.3.
|
|
35
|
+
"@cloudbase/oauth": "3.3.8",
|
|
36
|
+
"@cloudbase/utilities": "3.3.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@cloudbase/types": "3.3.
|
|
39
|
+
"@cloudbase/types": "3.3.8",
|
|
40
40
|
"@types/node": "^22.1.0",
|
|
41
41
|
"terser-webpack-plugin": "^3.0.2",
|
|
42
42
|
"webpack-bundle-analyzer": "^4.9.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4f541a7d5c351d74996ebbde2deeac3bc3ee9eb1"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -152,6 +152,7 @@ export class User implements IUser {
|
|
|
152
152
|
public locale?: string
|
|
153
153
|
public sub?: string
|
|
154
154
|
public createdFrom?: string
|
|
155
|
+
public open_id?: string
|
|
155
156
|
|
|
156
157
|
private cache: ICloudbaseCache
|
|
157
158
|
private oauthInstance: CloudbaseOAuth // CloudbaseOAuth 类型
|
|
@@ -332,6 +333,7 @@ export class User implements IUser {
|
|
|
332
333
|
'providers',
|
|
333
334
|
'username',
|
|
334
335
|
'created_at',
|
|
336
|
+
'open_id',
|
|
335
337
|
].forEach((infoKey) => {
|
|
336
338
|
this[infoKey] = userInfo[infoKey]
|
|
337
339
|
})
|
|
@@ -2527,6 +2529,7 @@ class Auth extends AuthV1Compat {
|
|
|
2527
2529
|
avatarUrl: userInfo.avatarUrl || userInfo.picture,
|
|
2528
2530
|
location: userInfo.location,
|
|
2529
2531
|
hasPassword: userInfo.hasPassword,
|
|
2532
|
+
open_id: userInfo?.open_id,
|
|
2530
2533
|
},
|
|
2531
2534
|
identities:
|
|
2532
2535
|
userInfo?.providers?.map(p => ({
|