@abtnode/blocklet-services 1.16.32-beta-17be26d7 → 1.16.32-beta-5463e017
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.
|
@@ -11,7 +11,11 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
11
11
|
onConnect: async ({ userDid, extraParams, request, baseUrl }) => {
|
|
12
12
|
const { locale, sourceAppPid } = extraParams;
|
|
13
13
|
const blocklet = await request.getBlocklet();
|
|
14
|
-
const user = await node.getUser({
|
|
14
|
+
const user = await node.getUser({
|
|
15
|
+
teamDid: blocklet.appPid,
|
|
16
|
+
user: { did: userDid },
|
|
17
|
+
options: { enableConnectedAccount: true },
|
|
18
|
+
});
|
|
15
19
|
if (!user) {
|
|
16
20
|
throw new Error(messages.userNotFound[locale]);
|
|
17
21
|
}
|
|
@@ -37,7 +41,11 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
37
41
|
const { locale, sourceAppPid } = extraParams;
|
|
38
42
|
const profile = claims.find((claim) => claim.type === 'profile');
|
|
39
43
|
const blocklet = await request.getBlocklet();
|
|
40
|
-
const user = await node.getUser({
|
|
44
|
+
const user = await node.getUser({
|
|
45
|
+
teamDid: blocklet.appPid,
|
|
46
|
+
user: { did: userDid },
|
|
47
|
+
options: { enableConnectedAccount: true },
|
|
48
|
+
});
|
|
41
49
|
if (!user) {
|
|
42
50
|
throw new Error(messages.userNotFound[locale]);
|
|
43
51
|
}
|
|
@@ -69,7 +77,7 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
69
77
|
const updatedUser = await node.updateUser({
|
|
70
78
|
teamDid: blocklet.appPid,
|
|
71
79
|
user: {
|
|
72
|
-
did:
|
|
80
|
+
did: user.did,
|
|
73
81
|
kycChanged: true,
|
|
74
82
|
...kycUpdates,
|
|
75
83
|
...profileUpdates,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.32-beta-
|
|
6
|
+
"version": "1.16.32-beta-5463e017",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.32-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.32-beta-
|
|
38
|
-
"@abtnode/client": "1.16.32-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.32-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.32-beta-
|
|
41
|
-
"@abtnode/core": "1.16.32-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.32-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.32-beta-
|
|
44
|
-
"@abtnode/models": "1.16.32-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.32-beta-
|
|
46
|
-
"@abtnode/util": "1.16.32-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.32-beta-5463e017",
|
|
37
|
+
"@abtnode/auth": "1.16.32-beta-5463e017",
|
|
38
|
+
"@abtnode/client": "1.16.32-beta-5463e017",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.32-beta-5463e017",
|
|
40
|
+
"@abtnode/constant": "1.16.32-beta-5463e017",
|
|
41
|
+
"@abtnode/core": "1.16.32-beta-5463e017",
|
|
42
|
+
"@abtnode/cron": "1.16.32-beta-5463e017",
|
|
43
|
+
"@abtnode/logger": "1.16.32-beta-5463e017",
|
|
44
|
+
"@abtnode/models": "1.16.32-beta-5463e017",
|
|
45
|
+
"@abtnode/router-templates": "1.16.32-beta-5463e017",
|
|
46
|
+
"@abtnode/util": "1.16.32-beta-5463e017",
|
|
47
47
|
"@arcblock/did": "^1.18.135",
|
|
48
48
|
"@arcblock/did-auth": "1.18.135",
|
|
49
49
|
"@arcblock/did-ext": "^1.18.135",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.18.135",
|
|
53
53
|
"@arcblock/validator": "^1.18.135",
|
|
54
54
|
"@arcblock/ws": "1.18.135",
|
|
55
|
-
"@blocklet/constant": "1.16.32-beta-
|
|
55
|
+
"@blocklet/constant": "1.16.32-beta-5463e017",
|
|
56
56
|
"@blocklet/form-builder": "^0.1.11",
|
|
57
57
|
"@blocklet/form-collector": "^0.1.8",
|
|
58
|
-
"@blocklet/meta": "1.16.32-beta-
|
|
59
|
-
"@blocklet/sdk": "1.16.32-beta-
|
|
58
|
+
"@blocklet/meta": "1.16.32-beta-5463e017",
|
|
59
|
+
"@blocklet/sdk": "1.16.32-beta-5463e017",
|
|
60
60
|
"@did-connect/authenticator": "^2.2.4",
|
|
61
61
|
"@did-connect/relay-adapter-express": "^2.2.4",
|
|
62
62
|
"@ocap/client": "1.18.135",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"minimatch": "9.0.4"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@abtnode/ux": "1.16.32-beta-
|
|
104
|
+
"@abtnode/ux": "1.16.32-beta-5463e017",
|
|
105
105
|
"@arcblock/bridge": "^2.10.33",
|
|
106
106
|
"@arcblock/did-connect": "^2.10.33",
|
|
107
107
|
"@arcblock/icons": "^2.10.33",
|
|
108
108
|
"@arcblock/react-hooks": "^2.10.33",
|
|
109
109
|
"@arcblock/ux": "^2.10.33",
|
|
110
110
|
"@blocklet/launcher-layout": "2.10.33",
|
|
111
|
-
"@blocklet/tracker": "1.16.32-beta-
|
|
111
|
+
"@blocklet/tracker": "1.16.32-beta-5463e017",
|
|
112
112
|
"@blocklet/ui-react": "^2.10.33",
|
|
113
113
|
"@emotion/react": "^11.11.4",
|
|
114
114
|
"@emotion/styled": "^11.11.5",
|
|
@@ -182,5 +182,5 @@
|
|
|
182
182
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
183
183
|
"email": "shijun@arcblock.io"
|
|
184
184
|
},
|
|
185
|
-
"gitHead": "
|
|
185
|
+
"gitHead": "aff2d89d663ccd842757ff664fb80e1d7ae05029"
|
|
186
186
|
}
|