propro-utils 1.4.99 → 1.5.1

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.1",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -307,6 +307,8 @@ class AuthMiddleware {
307
307
  req,
308
308
  '/api/v1/accounts/avatar'
309
309
  );
310
+
311
+ res.cookie('account', response.data);
310
312
  res.status(response.status).json(response.data);
311
313
  } catch (error) {
312
314
  this.handleProxyError(error, res);
@@ -353,12 +355,6 @@ class AuthMiddleware {
353
355
  formattedAuthUrl = `${formattedAuthUrl}&clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
354
356
  }
355
357
 
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
358
  const data = req.file ? formData : req.body;
363
359
 
364
360
  return axios({