@abtnode/auth 1.16.25-next-0ba03ffc → 1.16.25-next-44800645
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/server.js +4 -1
- package/package.json +8 -8
package/lib/server.js
CHANGED
|
@@ -223,6 +223,7 @@ const authenticateByNFT = async ({ node, claims, userDid, challenge, locale, isA
|
|
|
223
223
|
nftId: state.address,
|
|
224
224
|
nftOwner: state.owner,
|
|
225
225
|
chainHost,
|
|
226
|
+
appMaxCount: state.data.value.appMaxCount || 1,
|
|
226
227
|
},
|
|
227
228
|
},
|
|
228
229
|
user: {
|
|
@@ -269,6 +270,7 @@ const authenticateByLauncher = async ({ node, claims, launcherSessionId, launche
|
|
|
269
270
|
nftId: launcherSession.nftDid,
|
|
270
271
|
nftOwner: launcherSession.userDid,
|
|
271
272
|
chainHost,
|
|
273
|
+
appMaxCount: 1,
|
|
272
274
|
launcherUrl,
|
|
273
275
|
launcherSessionId,
|
|
274
276
|
ownerDid: claim.userDid,
|
|
@@ -532,7 +534,7 @@ const getOwnershipNFTClaim = async (node, locale) => {
|
|
|
532
534
|
return {
|
|
533
535
|
description: messages.requestBlockletSpaceNFT[locale],
|
|
534
536
|
trustedIssuers: [info.ownerNft.issuer],
|
|
535
|
-
|
|
537
|
+
tag, // tag is an unique identifier for the server in launcher
|
|
536
538
|
};
|
|
537
539
|
};
|
|
538
540
|
|
|
@@ -877,6 +879,7 @@ const handleRestoreByLauncherSession = async ({ node, userDid, updateSession, ex
|
|
|
877
879
|
nftId: launcherSession.nftDid,
|
|
878
880
|
nftOwner: launcherSession.userDid,
|
|
879
881
|
chainHost,
|
|
882
|
+
appMaxCount: 1,
|
|
880
883
|
launcherUrl,
|
|
881
884
|
launcherSessionId,
|
|
882
885
|
ownerDid: userDid, // FIXME: @wangshijun is this incorrect
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.25-next-
|
|
6
|
+
"version": "1.16.25-next-44800645",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,17 +20,17 @@
|
|
|
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.25-next-
|
|
24
|
-
"@abtnode/logger": "1.16.25-next-
|
|
25
|
-
"@abtnode/util": "1.16.25-next-
|
|
23
|
+
"@abtnode/constant": "1.16.25-next-44800645",
|
|
24
|
+
"@abtnode/logger": "1.16.25-next-44800645",
|
|
25
|
+
"@abtnode/util": "1.16.25-next-44800645",
|
|
26
26
|
"@arcblock/did": "1.18.113",
|
|
27
27
|
"@arcblock/jwt": "^1.18.113",
|
|
28
28
|
"@arcblock/nft-display": "^2.9.54",
|
|
29
29
|
"@arcblock/validator": "^1.18.113",
|
|
30
30
|
"@arcblock/vc": "1.18.113",
|
|
31
|
-
"@blocklet/constant": "1.16.25-next-
|
|
32
|
-
"@blocklet/meta": "1.16.25-next-
|
|
33
|
-
"@blocklet/sdk": "1.16.25-next-
|
|
31
|
+
"@blocklet/constant": "1.16.25-next-44800645",
|
|
32
|
+
"@blocklet/meta": "1.16.25-next-44800645",
|
|
33
|
+
"@blocklet/sdk": "1.16.25-next-44800645",
|
|
34
34
|
"@ocap/client": "^1.18.113",
|
|
35
35
|
"@ocap/mcrypto": "1.18.113",
|
|
36
36
|
"@ocap/util": "1.18.113",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"jest": "^29.7.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7d09cee17eb88bcfe6a4b298a0394c5945aa5f2e"
|
|
55
55
|
}
|