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.
- package/package.json +1 -1
- package/src/index.js +2 -0
package/package.json
CHANGED
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) {
|