propro-utils 1.4.46 → 1.4.47

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.46",
3
+ "version": "1.4.47",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -123,8 +123,11 @@ function proproAuthMiddleware(options = {}, userSchema) {
123
123
  const user = await checkIfUserExists(userSchema, account.accountId);
124
124
  console.log('user: ', user);
125
125
 
126
+ console.log('setting cookies: ', tokens, account, user);
126
127
  setAuthCookies(res, tokens, account, user);
127
128
 
129
+ console.log('setting cookies and redirectUrl: ', redirectUrl);
130
+
128
131
  const urlToRedirect = formatRedirectUrl(redirectUrl);
129
132
 
130
133
  return res.redirect(urlToRedirect);