@abtnode/auth 1.16.24-beta-c8847287 → 1.16.24-beta-5334b8f2

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.
@@ -106,7 +106,7 @@ const createLostPassportListRoute = ({ node, type }) => ({
106
106
  onAuth: async ({ userDid, extraParams, updateSession, req, baseUrl }) => {
107
107
  const { locale } = extraParams;
108
108
 
109
- const { teamDid, issuerDidList, info } = await getApplicationInfo({ node, req, type });
109
+ const { teamDid, issuerDidList, info, dataDir } = await getApplicationInfo({ node, req, type });
110
110
 
111
111
  // check user approved
112
112
  const user = await getUser(node, teamDid, userDid, { enableConnectedAccount: true });
@@ -139,6 +139,7 @@ const createLostPassportListRoute = ({ node, type }) => ({
139
139
 
140
140
  logger.info('get passport type list', { userDid: user.did, baseUrl });
141
141
 
142
+ user.avatar = await extractUserAvatar(user.avatar, { dataDir });
142
143
  user.avatar = getUserAvatarUrl(baseUrl, user.avatar, info, info.did === teamDid);
143
144
 
144
145
  await updateSession({ user });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.24-beta-c8847287",
6
+ "version": "1.16.24-beta-5334b8f2",
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": "Apache-2.0",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.16.24-beta-c8847287",
24
- "@abtnode/logger": "1.16.24-beta-c8847287",
25
- "@abtnode/util": "1.16.24-beta-c8847287",
23
+ "@abtnode/constant": "1.16.24-beta-5334b8f2",
24
+ "@abtnode/logger": "1.16.24-beta-5334b8f2",
25
+ "@abtnode/util": "1.16.24-beta-5334b8f2",
26
26
  "@arcblock/did": "1.18.110",
27
- "@arcblock/nft-display": "2.9.38",
27
+ "@arcblock/nft-display": "2.9.41",
28
28
  "@arcblock/validator": "^1.18.110",
29
29
  "@arcblock/vc": "1.18.110",
30
- "@blocklet/constant": "1.16.24-beta-c8847287",
31
- "@blocklet/meta": "1.16.24-beta-c8847287",
30
+ "@blocklet/constant": "1.16.24-beta-5334b8f2",
31
+ "@blocklet/meta": "1.16.24-beta-5334b8f2",
32
32
  "@ocap/client": "^1.18.110",
33
33
  "@ocap/mcrypto": "1.18.110",
34
34
  "@ocap/util": "1.18.110",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "jest": "^29.7.0"
51
51
  },
52
- "gitHead": "463311bdbd2cf425eb5c1fcf94e821053de1f7b1"
52
+ "gitHead": "dc7651d34cff0f2b57e528a78969957f6ce73c8e"
53
53
  }