@abtnode/auth 1.16.31 → 1.16.32-beta-04a5da00

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/server.js +1 -10
  2. package/package.json +9 -9
package/lib/server.js CHANGED
@@ -822,16 +822,7 @@ const createLaunchBlockletHandler =
822
822
  const getBlockletPermissionChecker =
823
823
  (node, allowedRoles = ['owner', 'admin', 'member']) =>
824
824
  async ({ userDid, extraParams }) => {
825
- const { locale = 'en', connectedDid } = extraParams;
826
-
827
- if (!connectedDid || userDid !== connectedDid) {
828
- throw new Error(
829
- {
830
- en: 'Please use current connected wallet to install blocklet',
831
- zh: '请使用当前登录的钱包来安装应用',
832
- }[locale]
833
- );
834
- }
825
+ const { locale = 'en' } = extraParams;
835
826
 
836
827
  const info = await node.getNodeInfo();
837
828
  const user = await getUser(node, info.did, userDid);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.31",
6
+ "version": "1.16.32-beta-04a5da00",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,17 +20,17 @@
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.31",
24
- "@abtnode/logger": "1.16.31",
25
- "@abtnode/util": "1.16.31",
23
+ "@abtnode/constant": "1.16.32-beta-04a5da00",
24
+ "@abtnode/logger": "1.16.32-beta-04a5da00",
25
+ "@abtnode/util": "1.16.32-beta-04a5da00",
26
26
  "@arcblock/did": "1.18.135",
27
27
  "@arcblock/jwt": "^1.18.135",
28
- "@arcblock/nft-display": "^2.10.28",
28
+ "@arcblock/nft-display": "^2.10.30",
29
29
  "@arcblock/validator": "^1.18.135",
30
30
  "@arcblock/vc": "1.18.135",
31
- "@blocklet/constant": "1.16.31",
32
- "@blocklet/meta": "1.16.31",
33
- "@blocklet/sdk": "1.16.31",
31
+ "@blocklet/constant": "1.16.32-beta-04a5da00",
32
+ "@blocklet/meta": "1.16.32-beta-04a5da00",
33
+ "@blocklet/sdk": "1.16.32-beta-04a5da00",
34
34
  "@ocap/client": "^1.18.135",
35
35
  "@ocap/mcrypto": "1.18.135",
36
36
  "@ocap/util": "1.18.135",
@@ -50,5 +50,5 @@
50
50
  "devDependencies": {
51
51
  "jest": "^29.7.0"
52
52
  },
53
- "gitHead": "03edde3e617b126c1873caa67b1d828ee1419a70"
53
+ "gitHead": "f609e3593366aace895c936b00f9623002e29b32"
54
54
  }