propro-utils 1.4.30 → 1.4.32

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.30",
3
+ "version": "1.4.32",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -163,8 +163,12 @@ function proproAuthMiddleware(options = {}, userSchema) {
163
163
  maxAge: accessMaxAge,
164
164
  });
165
165
 
166
+ console.log('redirectUrl', redirectUrl);
167
+
166
168
  const urlToRedirect = formatRedirectUrl(redirectUrl);
167
169
 
170
+ console.log('urlToRedirect', urlToRedirect);
171
+
168
172
  return res.redirect(urlToRedirect);
169
173
  }
170
174
  } catch (error) {
@@ -160,6 +160,8 @@ function formatRedirectUrl(redirectUrl) {
160
160
  urlToRedirect = redirectUrl;
161
161
  }
162
162
 
163
+ console.log('Redirect URL:', urlToRedirect);
164
+
163
165
  return urlToRedirect;
164
166
  }
165
167