@abtnode/auth 1.16.30 → 1.16.31-beta-4246ab25
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/lib/auth.js +6 -5
- package/package.json +19 -19
package/lib/auth.js
CHANGED
|
@@ -232,7 +232,7 @@ const getApplicationInfo = async ({ node, nodeInfo = {}, teamDid, baseUrl = '' }
|
|
|
232
232
|
passportColor = 'default';
|
|
233
233
|
owner = nodeInfo.nodeOwner;
|
|
234
234
|
dataDir = path.join(node.dataDirs.data, NODE_DATA_DIR_NAME);
|
|
235
|
-
secret = Hasher.SHA3.hash256(Buffer.concat([_wallet.secretKey, _wallet.address].map(Buffer.from)));
|
|
235
|
+
secret = Hasher.SHA3.hash256(Buffer.concat([_wallet.secretKey, _wallet.address].map((v) => Buffer.from(v))));
|
|
236
236
|
logo = getServerAvatarUrl(baseUrl, nodeInfo);
|
|
237
237
|
} else {
|
|
238
238
|
const blocklet = await node.getBlocklet({ did: teamDid });
|
|
@@ -444,8 +444,6 @@ const handleInvitationReceive = async ({
|
|
|
444
444
|
logo,
|
|
445
445
|
} = await getApplicationInfo({ node, nodeInfo, teamDid, baseUrl: endpoint });
|
|
446
446
|
|
|
447
|
-
const { remark } = inviteInfo;
|
|
448
|
-
|
|
449
447
|
const vcParams = {
|
|
450
448
|
issuerName,
|
|
451
449
|
issuerWallet,
|
|
@@ -526,7 +524,8 @@ const handleInvitationReceive = async ({
|
|
|
526
524
|
locale,
|
|
527
525
|
passport,
|
|
528
526
|
lastLoginIp: getRequestIP(req),
|
|
529
|
-
remark,
|
|
527
|
+
remark: inviteInfo.remark,
|
|
528
|
+
inviter: inviteInfo.inviter?.did,
|
|
530
529
|
connectedAccount: {
|
|
531
530
|
provider,
|
|
532
531
|
did: userDid,
|
|
@@ -554,7 +553,8 @@ const handleInvitationReceive = async ({
|
|
|
554
553
|
locale,
|
|
555
554
|
passport,
|
|
556
555
|
lastLoginIp: getRequestIP(req),
|
|
557
|
-
|
|
556
|
+
inviter: inviteInfo.inviter?.did,
|
|
557
|
+
remark: inviteInfo.remark,
|
|
558
558
|
connectedAccount: {
|
|
559
559
|
provider,
|
|
560
560
|
did: userDid,
|
|
@@ -593,6 +593,7 @@ const handleInvitationReceive = async ({
|
|
|
593
593
|
},
|
|
594
594
|
profile,
|
|
595
595
|
user: doc,
|
|
596
|
+
inviteInfo,
|
|
596
597
|
};
|
|
597
598
|
};
|
|
598
599
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.31-beta-4246ab25",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@abtnode/constant": "1.16.
|
|
24
|
-
"@abtnode/logger": "1.16.
|
|
25
|
-
"@abtnode/util": "1.16.
|
|
26
|
-
"@arcblock/did": "1.18.
|
|
27
|
-
"@arcblock/jwt": "^1.18.
|
|
28
|
-
"@arcblock/nft-display": "^2.10.
|
|
29
|
-
"@arcblock/validator": "^1.18.
|
|
30
|
-
"@arcblock/vc": "1.18.
|
|
31
|
-
"@blocklet/constant": "1.16.
|
|
32
|
-
"@blocklet/meta": "1.16.
|
|
33
|
-
"@blocklet/sdk": "1.16.
|
|
34
|
-
"@ocap/client": "^1.18.
|
|
35
|
-
"@ocap/mcrypto": "1.18.
|
|
36
|
-
"@ocap/util": "1.18.
|
|
37
|
-
"@ocap/wallet": "1.18.
|
|
38
|
-
"axios": "^1.7.
|
|
23
|
+
"@abtnode/constant": "1.16.31-beta-4246ab25",
|
|
24
|
+
"@abtnode/logger": "1.16.31-beta-4246ab25",
|
|
25
|
+
"@abtnode/util": "1.16.31-beta-4246ab25",
|
|
26
|
+
"@arcblock/did": "1.18.135",
|
|
27
|
+
"@arcblock/jwt": "^1.18.135",
|
|
28
|
+
"@arcblock/nft-display": "^2.10.27",
|
|
29
|
+
"@arcblock/validator": "^1.18.135",
|
|
30
|
+
"@arcblock/vc": "1.18.135",
|
|
31
|
+
"@blocklet/constant": "1.16.31-beta-4246ab25",
|
|
32
|
+
"@blocklet/meta": "1.16.31-beta-4246ab25",
|
|
33
|
+
"@blocklet/sdk": "1.16.31-beta-4246ab25",
|
|
34
|
+
"@ocap/client": "^1.18.135",
|
|
35
|
+
"@ocap/mcrypto": "1.18.135",
|
|
36
|
+
"@ocap/util": "1.18.135",
|
|
37
|
+
"@ocap/wallet": "1.18.135",
|
|
38
|
+
"axios": "^1.7.5",
|
|
39
39
|
"flat": "^5.0.2",
|
|
40
40
|
"fs-extra": "^11.2.0",
|
|
41
41
|
"is-url": "^1.2.4",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"jsonwebtoken": "^9.0.0",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
45
|
"p-retry": "4.6.1",
|
|
46
|
-
"semver": "^7.3
|
|
46
|
+
"semver": "^7.6.3",
|
|
47
47
|
"transliteration": "^2.3.5",
|
|
48
48
|
"ufo": "^1.5.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"jest": "^29.7.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ef93705b89033e4cd5fed458b64521d0a994a1d0"
|
|
54
54
|
}
|