propro-utils 1.4.28 → 1.4.30
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 +1 -1
- package/src/server/index.js +4 -0
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -159,6 +159,10 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
159
159
|
maxAge: accessMaxAge,
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
+
req.cookie('isLoggedIn', true, {
|
|
163
|
+
maxAge: accessMaxAge,
|
|
164
|
+
});
|
|
165
|
+
|
|
162
166
|
const urlToRedirect = formatRedirectUrl(redirectUrl);
|
|
163
167
|
|
|
164
168
|
return res.redirect(urlToRedirect);
|