propro-utils 1.4.99 → 1.5.2

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.99",
3
+ "version": "1.5.2",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -77,7 +77,6 @@ class AuthMiddleware {
77
77
  const { returnTokens } = req.query;
78
78
 
79
79
  console.log('returnTokens:', returnTokens);
80
- console.log('email:', email);
81
80
 
82
81
  try {
83
82
  const response = await this.proxyToAuthServer(
@@ -307,6 +306,7 @@ class AuthMiddleware {
307
306
  req,
308
307
  '/api/v1/accounts/avatar'
309
308
  );
309
+
310
310
  res.status(response.status).json(response.data);
311
311
  } catch (error) {
312
312
  this.handleProxyError(error, res);
@@ -353,12 +353,6 @@ class AuthMiddleware {
353
353
  formattedAuthUrl = `${formattedAuthUrl}&clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
354
354
  }
355
355
 
356
- console.log('formattedAuthUrl:', formattedAuthUrl);
357
- console.log('req.method:', req.method);
358
- console.log('file:', req.file);
359
- console.log('formData:', formData);
360
- console.log('headers:', headers);
361
-
362
356
  const data = req.file ? formData : req.body;
363
357
 
364
358
  return axios({