@abtnode/auth 1.5.16 → 1.5.20

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.
Files changed (2) hide show
  1. package/lib/auth.js +3 -0
  2. package/package.json +11 -11
package/lib/auth.js CHANGED
@@ -297,6 +297,7 @@ const handleInvitationResponse = async ({
297
297
  const { name: issuerName, wallet: issuerWallet, type: issuerType } = await getTeamInfo({ node, nodeInfo, teamDid });
298
298
 
299
299
  const inviteInfo = await node.processInvitation({ teamDid, inviteId });
300
+ const { remark } = inviteInfo;
300
301
 
301
302
  const vcParams = {
302
303
  issuerName,
@@ -340,6 +341,7 @@ const handleInvitationResponse = async ({
340
341
  locale,
341
342
  passports: upsertToPassports(user.passports || [], passport),
342
343
  lastLoginAt: new Date().toISOString(),
344
+ remark,
343
345
  },
344
346
  });
345
347
  } else {
@@ -354,6 +356,7 @@ const handleInvitationResponse = async ({
354
356
  passports: [passport],
355
357
  firstLoginAt: new Date().toISOString(),
356
358
  lastLoginAt: new Date().toISOString(),
359
+ remark,
357
360
  },
358
361
  });
359
362
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.5.16",
6
+ "version": "1.5.20",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,15 +20,15 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.5.16",
24
- "@abtnode/logger": "1.5.16",
25
- "@abtnode/util": "1.5.16",
26
- "@arcblock/did": "^1.13.61",
27
- "@arcblock/vc": "^1.13.61",
28
- "@blocklet/meta": "1.5.16",
29
- "@ocap/mcrypto": "^1.13.61",
30
- "@ocap/util": "^1.13.61",
31
- "@ocap/wallet": "^1.13.61",
23
+ "@abtnode/constant": "1.5.20",
24
+ "@abtnode/logger": "1.5.20",
25
+ "@abtnode/util": "1.5.20",
26
+ "@arcblock/did": "^1.13.64",
27
+ "@arcblock/vc": "^1.13.64",
28
+ "@blocklet/meta": "1.5.20",
29
+ "@ocap/mcrypto": "^1.13.64",
30
+ "@ocap/util": "^1.13.64",
31
+ "@ocap/wallet": "^1.13.64",
32
32
  "axios": "^0.21.4",
33
33
  "joi": "^17.4.0",
34
34
  "jsonwebtoken": "^8.5.1",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "jest": "^27.3.1"
41
41
  },
42
- "gitHead": "dd62c2886aba5bbb8ba5e99a0298558765230855"
42
+ "gitHead": "08771b885d987343780f29b95b71e6e0926b91bf"
43
43
  }