@abtnode/auth 1.16.38 → 1.16.39-beta-20250209-032436-5ceca2cb
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 +5 -0
- package/package.json +8 -8
package/lib/auth.js
CHANGED
|
@@ -1090,6 +1090,11 @@ const validatePassportStatus = async ({ vcId, endpoint, locale = 'en' }) => {
|
|
|
1090
1090
|
throw new CustomError(403, `${messages.unKnownStatus[locale]}: ${status}`);
|
|
1091
1091
|
}
|
|
1092
1092
|
} catch (err) {
|
|
1093
|
+
logger.error('failed to validate passport status', { vcId, endpoint, locale, err });
|
|
1094
|
+
|
|
1095
|
+
if (err instanceof CustomError) {
|
|
1096
|
+
throw err;
|
|
1097
|
+
}
|
|
1093
1098
|
throw new CustomError(500, messages.passportStatusCheckFailed[locale](err.message));
|
|
1094
1099
|
}
|
|
1095
1100
|
};
|
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.39-beta-20250209-032436-5ceca2cb",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,18 +20,18 @@
|
|
|
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.
|
|
23
|
+
"@abtnode/constant": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
24
|
+
"@abtnode/logger": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
25
|
+
"@abtnode/util": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
26
26
|
"@arcblock/did": "1.19.9",
|
|
27
27
|
"@arcblock/did-auth": "1.19.9",
|
|
28
28
|
"@arcblock/jwt": "^1.19.9",
|
|
29
29
|
"@arcblock/nft-display": "^2.11.30",
|
|
30
30
|
"@arcblock/validator": "^1.19.9",
|
|
31
31
|
"@arcblock/vc": "1.19.9",
|
|
32
|
-
"@blocklet/constant": "1.16.
|
|
33
|
-
"@blocklet/meta": "1.16.
|
|
34
|
-
"@blocklet/sdk": "1.16.
|
|
32
|
+
"@blocklet/constant": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
33
|
+
"@blocklet/meta": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
34
|
+
"@blocklet/sdk": "1.16.39-beta-20250209-032436-5ceca2cb",
|
|
35
35
|
"@ocap/client": "^1.19.9",
|
|
36
36
|
"@ocap/mcrypto": "1.19.9",
|
|
37
37
|
"@ocap/util": "1.19.9",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"jest": "^29.7.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "949581a46cec2ebfb656a42632ca550ed3b0ba70"
|
|
56
56
|
}
|