propro-utils 1.4.36 → 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.36",
3
+ "version": "1.4.37",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -161,6 +161,11 @@ function proproAuthMiddleware(options = {}, userSchema) {
161
161
  secure: process.env.NODE_ENV === 'production',
162
162
  });
163
163
 
164
+ res.cookie('has_account_token', 'true', {
165
+ maxAge: accessMaxAge,
166
+ secure: process.env.NODE_ENV === 'production',
167
+ });
168
+
164
169
  const urlToRedirect = formatRedirectUrl(redirectUrl);
165
170
 
166
171
  return res.redirect(urlToRedirect);