@abtnode/auth 1.17.0-beta-20251103-104515-e4795f0f → 1.17.0-beta-20251105-000053-53e6e3e9
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/util/federated.js +2 -37
- package/package.json +8 -8
package/lib/util/federated.js
CHANGED
|
@@ -3,6 +3,8 @@ const {
|
|
|
3
3
|
USER_AVATAR_URL_PREFIX,
|
|
4
4
|
USER_AVATAR_PATH_PREFIX,
|
|
5
5
|
FEDERATED,
|
|
6
|
+
SITE_SYNC_FIELDS,
|
|
7
|
+
USER_PROFILE_SYNC_FIELDS,
|
|
6
8
|
} = require('@abtnode/constant');
|
|
7
9
|
const { Joi } = require('@arcblock/validator');
|
|
8
10
|
const pRetry = require('p-retry');
|
|
@@ -21,43 +23,6 @@ const pLimit = require('p-limit');
|
|
|
21
23
|
const request = require('./request');
|
|
22
24
|
const logger = require('../logger');
|
|
23
25
|
|
|
24
|
-
const USER_PROFILE_SYNC_FIELDS = [
|
|
25
|
-
'action', // 表示对该 user 的操作
|
|
26
|
-
'did',
|
|
27
|
-
'pk',
|
|
28
|
-
'avatar',
|
|
29
|
-
'fullName',
|
|
30
|
-
'email',
|
|
31
|
-
'connectedAccount',
|
|
32
|
-
'disconnectedAccount',
|
|
33
|
-
'sourceAppPid',
|
|
34
|
-
'inviter',
|
|
35
|
-
'generation',
|
|
36
|
-
'emailVerified',
|
|
37
|
-
'phoneVerified',
|
|
38
|
-
];
|
|
39
|
-
|
|
40
|
-
const SITE_SYNC_FIELDS = [
|
|
41
|
-
'action',
|
|
42
|
-
'appId',
|
|
43
|
-
'appPid',
|
|
44
|
-
'aliasDid',
|
|
45
|
-
'appName',
|
|
46
|
-
'appDescription',
|
|
47
|
-
'appUrl',
|
|
48
|
-
'aliasDomain',
|
|
49
|
-
'appLogo',
|
|
50
|
-
'appLogoRect',
|
|
51
|
-
'appliedAt',
|
|
52
|
-
'did',
|
|
53
|
-
'pk',
|
|
54
|
-
'serverId',
|
|
55
|
-
'serverVersion',
|
|
56
|
-
'version',
|
|
57
|
-
'isMaster',
|
|
58
|
-
'status',
|
|
59
|
-
];
|
|
60
|
-
|
|
61
26
|
const federatedEnvSchema = Joi.object({
|
|
62
27
|
sigVersion: Joi.string().optional().allow('').default(''),
|
|
63
28
|
}).unknown(true);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.0-beta-
|
|
6
|
+
"version": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.17.0-beta-
|
|
22
|
-
"@abtnode/logger": "1.17.0-beta-
|
|
23
|
-
"@abtnode/util": "1.17.0-beta-
|
|
21
|
+
"@abtnode/constant": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
22
|
+
"@abtnode/logger": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
23
|
+
"@abtnode/util": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
24
24
|
"@arcblock/did": "^1.27.1",
|
|
25
25
|
"@arcblock/did-connect-js": "^1.27.1",
|
|
26
26
|
"@arcblock/did-ext": "^1.27.1",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@arcblock/nft-display": "^3.1.54",
|
|
30
30
|
"@arcblock/validator": "^1.27.1",
|
|
31
31
|
"@arcblock/vc": "^1.27.1",
|
|
32
|
-
"@blocklet/constant": "1.17.0-beta-
|
|
32
|
+
"@blocklet/constant": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
33
33
|
"@blocklet/error": "^0.3.0",
|
|
34
|
-
"@blocklet/meta": "1.17.0-beta-
|
|
35
|
-
"@blocklet/sdk": "1.17.0-beta-
|
|
34
|
+
"@blocklet/meta": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
35
|
+
"@blocklet/sdk": "1.17.0-beta-20251105-000053-53e6e3e9",
|
|
36
36
|
"@ocap/client": "^1.27.1",
|
|
37
37
|
"@ocap/mcrypto": "^1.27.1",
|
|
38
38
|
"@ocap/util": "^1.27.1",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"axios-mock-adapter": "^2.1.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "61a1b994cca350a1c7cd12debc39416ac3af1a5d"
|
|
59
59
|
}
|