@abtnode/auth 1.16.13-beta-90ded76f → 1.16.13-beta-ef672597

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/passport.js +1 -1
  2. package/package.json +7 -7
package/lib/passport.js CHANGED
@@ -178,7 +178,7 @@ const createUserPassport = (vc, { status = PASSPORT_STATUS.VALID, role = ROLES.G
178
178
  };
179
179
 
180
180
  const getPassportClaimUrl = (baseUrl) =>
181
- baseUrl ? joinUrl(baseUrl, WELLKNOWN_SERVICE_PATH_PREFIX, '/lost-passport') : '';
181
+ baseUrl ? joinUrl(new URL(baseUrl).origin, WELLKNOWN_SERVICE_PATH_PREFIX, '/lost-passport') : '';
182
182
 
183
183
  module.exports = {
184
184
  validatePassport,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.13-beta-90ded76f",
6
+ "version": "1.16.13-beta-ef672597",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,13 +20,13 @@
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.13-beta-90ded76f",
24
- "@abtnode/logger": "1.16.13-beta-90ded76f",
25
- "@abtnode/util": "1.16.13-beta-90ded76f",
23
+ "@abtnode/constant": "1.16.13-beta-ef672597",
24
+ "@abtnode/logger": "1.16.13-beta-ef672597",
25
+ "@abtnode/util": "1.16.13-beta-ef672597",
26
26
  "@arcblock/did": "1.18.84",
27
27
  "@arcblock/vc": "1.18.84",
28
- "@blocklet/constant": "1.16.13-beta-90ded76f",
29
- "@blocklet/meta": "1.16.13-beta-90ded76f",
28
+ "@blocklet/constant": "1.16.13-beta-ef672597",
29
+ "@blocklet/meta": "1.16.13-beta-ef672597",
30
30
  "@ocap/mcrypto": "1.18.84",
31
31
  "@ocap/util": "1.18.84",
32
32
  "@ocap/wallet": "1.18.84",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.5.1"
44
44
  },
45
- "gitHead": "e6d4b88fe2cb45e00e5d745e1cd148dc76a019a4"
45
+ "gitHead": "ed5abea5072dee26860ed43139bfee17461b19a1"
46
46
  }