@abtnode/auth 1.16.47-beta-20250721-130532-61549a96 → 1.16.47-beta-20250723-114212-8da08071
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/lost-passport.js +3 -2
- package/package.json +20 -20
package/lib/lost-passport.js
CHANGED
|
@@ -128,7 +128,7 @@ const createLostPassportListRoute = ({ node, type }) => ({
|
|
|
128
128
|
},
|
|
129
129
|
|
|
130
130
|
onAuth: async ({ userDid, extraParams, updateSession, req, baseUrl }) => {
|
|
131
|
-
const { locale } = extraParams;
|
|
131
|
+
const { locale, scope = 'passport' } = extraParams;
|
|
132
132
|
|
|
133
133
|
const { teamDid, issuerDidList, info, dataDir } = await getApplicationInfo({ node, req, type });
|
|
134
134
|
|
|
@@ -143,7 +143,8 @@ const createLostPassportListRoute = ({ node, type }) => ({
|
|
|
143
143
|
throw new CustomError(403, messages.notAllowed[locale]);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
const passportList = getActivePassports(user, issuerDidList);
|
|
147
|
+
user.passportTypes = passportList.filter((x) => x.scope === scope);
|
|
147
148
|
if (!user.passportTypes.length) {
|
|
148
149
|
throw new CustomError(404, messages.noPassportFound[locale]);
|
|
149
150
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.47-beta-
|
|
6
|
+
"version": "1.16.47-beta-20250723-114212-8da08071",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,25 +20,25 @@
|
|
|
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.47-beta-
|
|
24
|
-
"@abtnode/logger": "1.16.47-beta-
|
|
25
|
-
"@abtnode/util": "1.16.47-beta-
|
|
26
|
-
"@arcblock/did": "1.
|
|
27
|
-
"@arcblock/did-auth": "1.
|
|
28
|
-
"@arcblock/did-ext": "1.
|
|
29
|
-
"@arcblock/did-util": "1.
|
|
30
|
-
"@arcblock/jwt": "1.
|
|
31
|
-
"@arcblock/nft-display": "^3.0.
|
|
32
|
-
"@arcblock/validator": "1.
|
|
33
|
-
"@arcblock/vc": "1.
|
|
34
|
-
"@blocklet/constant": "1.16.47-beta-
|
|
23
|
+
"@abtnode/constant": "1.16.47-beta-20250723-114212-8da08071",
|
|
24
|
+
"@abtnode/logger": "1.16.47-beta-20250723-114212-8da08071",
|
|
25
|
+
"@abtnode/util": "1.16.47-beta-20250723-114212-8da08071",
|
|
26
|
+
"@arcblock/did": "1.21.0",
|
|
27
|
+
"@arcblock/did-auth": "1.21.0",
|
|
28
|
+
"@arcblock/did-ext": "1.21.0",
|
|
29
|
+
"@arcblock/did-util": "1.21.0",
|
|
30
|
+
"@arcblock/jwt": "1.21.0",
|
|
31
|
+
"@arcblock/nft-display": "^3.0.30",
|
|
32
|
+
"@arcblock/validator": "1.21.0",
|
|
33
|
+
"@arcblock/vc": "1.21.0",
|
|
34
|
+
"@blocklet/constant": "1.16.47-beta-20250723-114212-8da08071",
|
|
35
35
|
"@blocklet/error": "^0.2.5",
|
|
36
|
-
"@blocklet/meta": "1.16.47-beta-
|
|
37
|
-
"@blocklet/sdk": "1.16.47-beta-
|
|
38
|
-
"@ocap/client": "1.
|
|
39
|
-
"@ocap/mcrypto": "1.
|
|
40
|
-
"@ocap/util": "1.
|
|
41
|
-
"@ocap/wallet": "1.
|
|
36
|
+
"@blocklet/meta": "1.16.47-beta-20250723-114212-8da08071",
|
|
37
|
+
"@blocklet/sdk": "1.16.47-beta-20250723-114212-8da08071",
|
|
38
|
+
"@ocap/client": "1.21.0",
|
|
39
|
+
"@ocap/mcrypto": "1.21.0",
|
|
40
|
+
"@ocap/util": "1.21.0",
|
|
41
|
+
"@ocap/wallet": "1.21.0",
|
|
42
42
|
"@simplewebauthn/server": "^13.1.1",
|
|
43
43
|
"axios": "^1.7.9",
|
|
44
44
|
"flat": "^5.0.2",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"jest": "^29.7.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "39a8ac5b8ca38755da47fd6f895d4fb0e19c0093"
|
|
60
60
|
}
|