propro-utils 1.4.26 → 1.4.27

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.26",
3
+ "version": "1.4.27",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -67,8 +67,6 @@ function proproAuthMiddleware(options = {}, userSchema) {
67
67
  .json({ redirectUrl, error: 'No refresh token provided' });
68
68
  }
69
69
 
70
- console.log('refreshToken', refreshToken);
71
-
72
70
  const formatedAuthUrl = formatRedirectUrl(authUrl);
73
71
 
74
72
  const response = await post(
@@ -85,8 +83,6 @@ function proproAuthMiddleware(options = {}, userSchema) {
85
83
 
86
84
  const { account, access, refresh } = response.data;
87
85
 
88
- console.log('response', response.data);
89
-
90
86
  if (!account || !access || !refresh) {
91
87
  return res
92
88
  .status(401)
@@ -113,8 +109,6 @@ function proproAuthMiddleware(options = {}, userSchema) {
113
109
  maxAge: accessMaxAge,
114
110
  });
115
111
 
116
- console.log('account', account);
117
-
118
112
  return res
119
113
  .status(200)
120
114
  .json({ message: 'Token refreshed successfully' });