@abtnode/auth 1.8.65-beta-5405baf2 → 1.8.65-beta-bfcc12ce

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 -0
  2. package/package.json +14 -14
package/lib/auth.js CHANGED
@@ -559,6 +559,7 @@ const handleInvitationResponse = async ({
559
559
  locale,
560
560
  passports: upsertToPassports(user.passports || [], passport),
561
561
  lastLoginAt: new Date().toISOString(),
562
+ lastLoginIp: get(req, 'headers[x-real-ip]') || '',
562
563
  remark,
563
564
  },
564
565
  });
@@ -584,6 +585,7 @@ const handleInvitationResponse = async ({
584
585
  passports: [passport],
585
586
  firstLoginAt: new Date().toISOString(),
586
587
  lastLoginAt: new Date().toISOString(),
588
+ lastLoginIp: get(req, 'headers[x-real-ip]') || '',
587
589
  remark,
588
590
  },
589
591
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.65-beta-5405baf2",
6
+ "version": "1.8.65-beta-bfcc12ce",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,18 +20,18 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.8.65-beta-5405baf2",
24
- "@abtnode/logger": "1.8.65-beta-5405baf2",
25
- "@abtnode/util": "1.8.65-beta-5405baf2",
26
- "@arcblock/did": "1.18.37",
27
- "@arcblock/jwt": "^1.18.37",
28
- "@arcblock/vc": "1.18.37",
29
- "@blocklet/constant": "1.8.65-beta-5405baf2",
30
- "@blocklet/meta": "1.8.65-beta-5405baf2",
31
- "@ocap/client": "1.18.37",
32
- "@ocap/mcrypto": "1.18.37",
33
- "@ocap/util": "1.18.37",
34
- "@ocap/wallet": "1.18.37",
23
+ "@abtnode/constant": "1.8.65-beta-bfcc12ce",
24
+ "@abtnode/logger": "1.8.65-beta-bfcc12ce",
25
+ "@abtnode/util": "1.8.65-beta-bfcc12ce",
26
+ "@arcblock/did": "1.18.42",
27
+ "@arcblock/jwt": "^1.18.42",
28
+ "@arcblock/vc": "1.18.42",
29
+ "@blocklet/constant": "1.8.65-beta-bfcc12ce",
30
+ "@blocklet/meta": "1.8.65-beta-bfcc12ce",
31
+ "@ocap/client": "1.18.42",
32
+ "@ocap/mcrypto": "1.18.42",
33
+ "@ocap/util": "1.18.42",
34
+ "@ocap/wallet": "1.18.42",
35
35
  "axios": "^0.27.2",
36
36
  "joi": "17.7.0",
37
37
  "jsonwebtoken": "^9.0.0",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.5.1"
44
44
  },
45
- "gitHead": "e5dc838baded7031096118462a604fd70d78ff1c"
45
+ "gitHead": "f6a56512275a55feecf2f3953542ea98777a08f2"
46
46
  }