@abtnode/auth 1.16.29-beta-2eaf40bc → 1.16.29-beta-cbfd116d
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 +15 -2
- package/package.json +9 -9
package/lib/server.js
CHANGED
|
@@ -792,13 +792,26 @@ const createLaunchBlockletHandler =
|
|
|
792
792
|
formatContext(Object.assign(req, { user: { ...pick(user, ['did', 'fullName']), role } }))
|
|
793
793
|
);
|
|
794
794
|
|
|
795
|
-
const result = await node.setupAppOwner(
|
|
796
|
-
|
|
795
|
+
const result = await node.setupAppOwner({
|
|
796
|
+
node,
|
|
797
|
+
sessionId,
|
|
798
|
+
justCreate: !blockletMetaUrl,
|
|
799
|
+
context: {
|
|
800
|
+
visitorId: extraParams.visitorId,
|
|
801
|
+
ua: req.get('user-agent'),
|
|
802
|
+
lastLoginIp: req.get('x-real-ip'),
|
|
803
|
+
walletOS: didwallet?.os,
|
|
804
|
+
walletDeviceMessageToken: req.get('wallet-device-message-token'),
|
|
805
|
+
walletDeviceId: req.get('wallet-device-id'),
|
|
806
|
+
},
|
|
807
|
+
});
|
|
808
|
+
await updateSession({ setupToken: result.setupToken, visitorId: result.visitorId });
|
|
797
809
|
|
|
798
810
|
return {
|
|
799
811
|
disposition: 'attachment',
|
|
800
812
|
type: 'VerifiableCredential',
|
|
801
813
|
data: result.passport,
|
|
814
|
+
visitorId: result.visitorId,
|
|
802
815
|
};
|
|
803
816
|
};
|
|
804
817
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.29-beta-
|
|
6
|
+
"version": "1.16.29-beta-cbfd116d",
|
|
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.29-beta-
|
|
24
|
-
"@abtnode/logger": "1.16.29-beta-
|
|
25
|
-
"@abtnode/util": "1.16.29-beta-
|
|
23
|
+
"@abtnode/constant": "1.16.29-beta-cbfd116d",
|
|
24
|
+
"@abtnode/logger": "1.16.29-beta-cbfd116d",
|
|
25
|
+
"@abtnode/util": "1.16.29-beta-cbfd116d",
|
|
26
26
|
"@arcblock/did": "1.18.126",
|
|
27
27
|
"@arcblock/jwt": "^1.18.126",
|
|
28
|
-
"@arcblock/nft-display": "^2.10.
|
|
28
|
+
"@arcblock/nft-display": "^2.10.7",
|
|
29
29
|
"@arcblock/validator": "^1.18.126",
|
|
30
30
|
"@arcblock/vc": "1.18.126",
|
|
31
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
32
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
33
|
-
"@blocklet/sdk": "1.16.29-beta-
|
|
31
|
+
"@blocklet/constant": "1.16.29-beta-cbfd116d",
|
|
32
|
+
"@blocklet/meta": "1.16.29-beta-cbfd116d",
|
|
33
|
+
"@blocklet/sdk": "1.16.29-beta-cbfd116d",
|
|
34
34
|
"@ocap/client": "^1.18.126",
|
|
35
35
|
"@ocap/mcrypto": "1.18.126",
|
|
36
36
|
"@ocap/util": "1.18.126",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"jest": "^29.7.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e9bdb7af77f2d126e40195c67972b07fe683adf9"
|
|
54
54
|
}
|