@rpcbase/server 0.275.0 → 0.277.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.275.0",
3
+ "version": "0.277.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "test": "echo \"Error: no test specified\" && exit 0"
11
11
  },
12
12
  "dependencies": {
13
- "@rpcbase/access-control": "0.27.0",
13
+ "@rpcbase/access-control": "0.28.0",
14
14
  "@rpcbase/agent": "0.35.0",
15
15
  "@rpcbase/std": "0.13.0",
16
16
  "@sentry/node": "7.72.0",
@@ -38,6 +38,7 @@ const sign_in = async({email, password}, ctx) => {
38
38
 
39
39
  if (has_session_store) {
40
40
  req.session.user_id = user_id
41
+ req.session.signed_in_at_ms = Date.now()
41
42
  await req.session.save()
42
43
  } else {
43
44
  // On sign in success, we set this header to tell the reverse-proxy sign in was OK
@@ -65,7 +65,7 @@ setTimeout(async() => {
65
65
  saveUninitialized: true,
66
66
  // WARNING DO NOT USE IN PROD
67
67
  secret: "NOT_A_SECRET_BECAUSE_THIS_MIDDLEWARE_IS_NOT_MEANT_TO_BE_USED_IN_PROD",
68
- resave: false,
68
+ resave: true,
69
69
  cookie: {
70
70
  // TODO: set to secure in production
71
71
  // secure: true