@abtnode/auth 1.8.65-beta-b8810d3f → 1.8.66-beta-ff281dd5
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 +3 -3
- package/package.json +7 -7
package/lib/auth.js
CHANGED
|
@@ -809,9 +809,9 @@ const handleIssuePassportResponse = async ({
|
|
|
809
809
|
};
|
|
810
810
|
|
|
811
811
|
const getVCFromClaims = async ({ claims, challenge, trustedIssuers, vcTypes, locale = 'en', vcId }) => {
|
|
812
|
-
const credential = claims
|
|
813
|
-
(
|
|
814
|
-
|
|
812
|
+
const credential = claims
|
|
813
|
+
.filter(Boolean) // FIXES: https://github.com/ArcBlock/did-connect/issues/74
|
|
814
|
+
.find((x) => x.type === 'verifiableCredential' && vcTypes.some((item) => x.item.includes(item)));
|
|
815
815
|
|
|
816
816
|
if (!credential || !credential.presentation) {
|
|
817
817
|
return {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.66-beta-ff281dd5",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@abtnode/constant": "1.8.
|
|
24
|
-
"@abtnode/logger": "1.8.
|
|
25
|
-
"@abtnode/util": "1.8.
|
|
23
|
+
"@abtnode/constant": "1.8.66-beta-ff281dd5",
|
|
24
|
+
"@abtnode/logger": "1.8.66-beta-ff281dd5",
|
|
25
|
+
"@abtnode/util": "1.8.66-beta-ff281dd5",
|
|
26
26
|
"@arcblock/did": "1.18.42",
|
|
27
27
|
"@arcblock/jwt": "^1.18.42",
|
|
28
28
|
"@arcblock/vc": "1.18.42",
|
|
29
|
-
"@blocklet/constant": "1.8.
|
|
30
|
-
"@blocklet/meta": "1.8.
|
|
29
|
+
"@blocklet/constant": "1.8.66-beta-ff281dd5",
|
|
30
|
+
"@blocklet/meta": "1.8.66-beta-ff281dd5",
|
|
31
31
|
"@ocap/client": "1.18.42",
|
|
32
32
|
"@ocap/mcrypto": "1.18.42",
|
|
33
33
|
"@ocap/util": "1.18.42",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"jest": "^27.5.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "92edfc81679a4749b30a7f8195d487afa148e26b"
|
|
46
46
|
}
|