@ladjs/web 20.0.5 → 20.0.7
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/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -372,6 +372,10 @@ class Web {
|
|
|
372
372
|
if (this.config.methodOverride)
|
|
373
373
|
app.use(methodOverride(...this.config.methodOverride));
|
|
374
374
|
|
|
375
|
+
// allow hooks before passport to get setup
|
|
376
|
+
if (_.isFunction(this.config.hookBeforePassport))
|
|
377
|
+
this.config.hookBeforePassport(app);
|
|
378
|
+
|
|
375
379
|
// passport
|
|
376
380
|
if (this.passport) {
|
|
377
381
|
app.use(this.passport.initialize());
|
package/package.json
CHANGED