propro-utils 1.7.37 → 1.7.38

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.7.37",
3
+ "version": "1.7.38",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -118,12 +118,14 @@ class ProProAuthMiddleware {
118
118
 
119
119
  middleware() {
120
120
  return (req, res, next) => {
121
+ console.log("MIDDLEWARE: Entered")
121
122
  try {
122
123
  if (this.options.useServerAuth) {
123
124
  return this.initializeServerAuth()(req, res, next);
124
125
  } else if (this.options.useClientAuth) {
125
126
  return this.initializeClientAuth()(req, res, next);
126
127
  } else {
128
+ console.log("MIDDLEWARE: next()")
127
129
  next();
128
130
  }
129
131
  } catch (error) {