propro-utils 1.4.38 → 1.4.39

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.38",
3
+ "version": "1.4.39",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -128,8 +128,12 @@ function proproAuthMiddleware(options = {}, userSchema) {
128
128
 
129
129
  const user = await checkIfUserExists(userSchema, account.accountId);
130
130
 
131
+ console.log('Setting Cookies: ', user, account);
132
+
131
133
  setAuthCookies(res, { access, refresh }, account, user);
132
134
 
135
+ console.log('Cookies Set: ');
136
+
133
137
  return res
134
138
  .status(200)
135
139
  .json({ message: 'Token refreshed successfully' });