propro-utils 1.4.35 → 1.4.37

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": "propro-utils",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -152,11 +152,16 @@ function proproAuthMiddleware(options = {}, userSchema) {
152
152
  });
153
153
 
154
154
  res.cookie('user', JSON.stringify(user), {
155
- maxAge: accessMaxAge,
155
+ maxAge: refreshMaxAge,
156
156
  secure: process.env.NODE_ENV === 'production',
157
157
  });
158
158
 
159
159
  res.cookie('account', JSON.stringify(account), {
160
+ maxAge: refreshMaxAge,
161
+ secure: process.env.NODE_ENV === 'production',
162
+ });
163
+
164
+ res.cookie('has_account_token', 'true', {
160
165
  maxAge: accessMaxAge,
161
166
  secure: process.env.NODE_ENV === 'production',
162
167
  });