@abtnode/auth 1.16.52-beta-20251002-030549-0f91dab2 → 1.16.52-beta-20251003-083412-fdfc4e36
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 +29 -32
- package/lib/passkey.js +1 -1
- package/package.json +8 -8
package/lib/lost-passport.js
CHANGED
|
@@ -441,39 +441,36 @@ const createLostPassportIssueRoute = ({ node, type, authServicePrefix, createTok
|
|
|
441
441
|
|
|
442
442
|
if (shouldSyncFederated(sourceAppPid, blocklet)) {
|
|
443
443
|
const masterSite = getFederatedMaster(blocklet);
|
|
444
|
-
node
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
sourceAppPid: sourceAppPid || masterSite.appPid,
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
})
|
|
462
|
-
.then(() => {
|
|
463
|
-
node.syncUserSession({
|
|
464
|
-
teamDid,
|
|
465
|
-
userDid: userSessionDoc.userDid,
|
|
466
|
-
visitorId: userSessionDoc.visitorId,
|
|
467
|
-
passportId: passport?.id,
|
|
468
|
-
targetAppPid: sourceAppPid,
|
|
469
|
-
ua,
|
|
470
|
-
lastLoginIp,
|
|
471
|
-
extra: {
|
|
472
|
-
walletOS,
|
|
473
|
-
device: deviceData,
|
|
444
|
+
await node.syncFederated({
|
|
445
|
+
did: teamDid,
|
|
446
|
+
data: {
|
|
447
|
+
users: [
|
|
448
|
+
{
|
|
449
|
+
action: 'connectAccount',
|
|
450
|
+
did: updatedUser.did,
|
|
451
|
+
pk: updatedUser.pk,
|
|
452
|
+
fullName: updatedUser.fullName,
|
|
453
|
+
email: updatedUser.email || '',
|
|
454
|
+
avatar: getUserAvatarUrlForFederated(updatedUser.avatar, blocklet),
|
|
455
|
+
connectedAccount: [connectAccount],
|
|
456
|
+
sourceAppPid: sourceAppPid || masterSite.appPid,
|
|
474
457
|
},
|
|
475
|
-
|
|
476
|
-
}
|
|
458
|
+
],
|
|
459
|
+
},
|
|
460
|
+
});
|
|
461
|
+
await node.syncUserSession({
|
|
462
|
+
teamDid,
|
|
463
|
+
userDid: userSessionDoc.userDid,
|
|
464
|
+
visitorId: userSessionDoc.visitorId,
|
|
465
|
+
passportId: passport?.id,
|
|
466
|
+
targetAppPid: sourceAppPid,
|
|
467
|
+
ua,
|
|
468
|
+
lastLoginIp,
|
|
469
|
+
extra: {
|
|
470
|
+
walletOS,
|
|
471
|
+
device: deviceData,
|
|
472
|
+
},
|
|
473
|
+
});
|
|
477
474
|
}
|
|
478
475
|
const { sessionToken, refreshToken } = await createToken(
|
|
479
476
|
userPid,
|
package/lib/passkey.js
CHANGED
|
@@ -601,7 +601,7 @@ function createPasskeyHandlers(node, mode, createToken) {
|
|
|
601
601
|
origin: await getOrigin({ req }),
|
|
602
602
|
});
|
|
603
603
|
if (targetAppPid) {
|
|
604
|
-
node.syncUserSession({
|
|
604
|
+
await node.syncUserSession({
|
|
605
605
|
teamDid,
|
|
606
606
|
userDid: userSessionDoc.userDid,
|
|
607
607
|
visitorId: userSessionDoc.visitorId,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.52-beta-
|
|
6
|
+
"version": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,9 +20,9 @@
|
|
|
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.52-beta-
|
|
24
|
-
"@abtnode/logger": "1.16.52-beta-
|
|
25
|
-
"@abtnode/util": "1.16.52-beta-
|
|
23
|
+
"@abtnode/constant": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
24
|
+
"@abtnode/logger": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
25
|
+
"@abtnode/util": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
26
26
|
"@arcblock/did": "1.25.6",
|
|
27
27
|
"@arcblock/did-connect-js": "1.25.6",
|
|
28
28
|
"@arcblock/did-ext": "1.25.6",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@arcblock/nft-display": "^3.1.44",
|
|
32
32
|
"@arcblock/validator": "1.25.6",
|
|
33
33
|
"@arcblock/vc": "1.25.6",
|
|
34
|
-
"@blocklet/constant": "1.16.52-beta-
|
|
34
|
+
"@blocklet/constant": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
35
35
|
"@blocklet/error": "^0.2.5",
|
|
36
|
-
"@blocklet/meta": "1.16.52-beta-
|
|
37
|
-
"@blocklet/sdk": "1.16.52-beta-
|
|
36
|
+
"@blocklet/meta": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
37
|
+
"@blocklet/sdk": "1.16.52-beta-20251003-083412-fdfc4e36",
|
|
38
38
|
"@ocap/client": "1.25.6",
|
|
39
39
|
"@ocap/mcrypto": "1.25.6",
|
|
40
40
|
"@ocap/util": "1.25.6",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"jest": "^29.7.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "973c4fe0d6c1bb59c9101cea4866105ab5ec89d2"
|
|
60
60
|
}
|