propro-utils 1.4.13 → 1.4.15

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.13",
3
+ "version": "1.4.15",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -145,8 +145,8 @@ function proproAuthMiddleware(options = {}, userSchema) {
145
145
 
146
146
 
147
147
  res.cookie('account', JSON.stringify(account));
148
-
149
- const urlToRedirect = `http://${redirectUrl}/`;
148
+
149
+ const urlToRedirect = redirectUrl.includes('app.mapmap.app') ? `https://${redirectUrl}/` : `https://${redirectUrl}/`;
150
150
 
151
151
  return res.redirect(urlToRedirect);
152
152
  }