propro-utils 1.4.49 → 1.4.50

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.49",
3
+ "version": "1.4.50",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -56,7 +56,6 @@ function proproAuthMiddleware(options = {}, userSchema) {
56
56
  if (req.cookies) {
57
57
  refreshToken = req.cookies['x-refresh-token'];
58
58
  }
59
- console.log('refreshing tokens: ', refreshToken);
60
59
  if (!refreshToken) {
61
60
  const redirectUrl = constructRedirectUrl(
62
61
  clientUrl,
@@ -121,13 +120,9 @@ function proproAuthMiddleware(options = {}, userSchema) {
121
120
  );
122
121
 
123
122
  const user = await checkIfUserExists(userSchema, account.accountId);
124
- console.log('user: ', user);
125
123
 
126
- console.log('setting cookies: ', tokens, account, user);
127
124
  setAuthCookies(res, tokens, account, user);
128
125
 
129
- console.log('setting cookies and redirectUrl: ', redirectUrl);
130
-
131
126
  const urlToRedirect = formatRedirectUrl(redirectUrl);
132
127
 
133
128
  return res.redirect(urlToRedirect);