@abtnode/auth 1.6.24 → 1.6.27

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 +2 -1
  2. package/package.json +6 -6
package/lib/auth.js CHANGED
@@ -274,9 +274,10 @@ const createAuthToken = ({ did, passport, role, secret, expiresIn } = {}) => {
274
274
  return token;
275
275
  };
276
276
 
277
- const createAuthTokenByOwnershipNFT = ({ role, secret, expiresIn } = {}) => {
277
+ const createAuthTokenByOwnershipNFT = ({ did, role, secret, expiresIn } = {}) => {
278
278
  const payload = {
279
279
  type: 'ownership_nft',
280
+ did,
280
281
  role,
281
282
  };
282
283
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.6.24",
6
+ "version": "1.6.27",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,12 +20,12 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.6.24",
24
- "@abtnode/logger": "1.6.24",
25
- "@abtnode/util": "1.6.24",
23
+ "@abtnode/constant": "1.6.27",
24
+ "@abtnode/logger": "1.6.27",
25
+ "@abtnode/util": "1.6.27",
26
26
  "@arcblock/did": "^1.14.19",
27
27
  "@arcblock/vc": "^1.14.19",
28
- "@blocklet/meta": "1.6.24",
28
+ "@blocklet/meta": "1.6.27",
29
29
  "@ocap/mcrypto": "^1.14.19",
30
30
  "@ocap/util": "^1.14.19",
31
31
  "@ocap/wallet": "^1.14.19",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "jest": "^27.4.5"
41
41
  },
42
- "gitHead": "6bd8792a155ebbbefea6ca3d42c5b59b354d9879"
42
+ "gitHead": "5ec2dbcfa7d9464c0430ea3112e4fe0fbab65414"
43
43
  }