@ladjs/web 20.0.5 → 20.0.6
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
|
@@ -198,6 +198,10 @@ class Web {
|
|
|
198
198
|
: this.config.redis;
|
|
199
199
|
app.context.client = this.client;
|
|
200
200
|
|
|
201
|
+
// allow hooks before passport to get setup
|
|
202
|
+
if (_.isFunction(this.config.hookBeforePassport))
|
|
203
|
+
this.config.hookBeforePassport(app);
|
|
204
|
+
|
|
201
205
|
// expose passport
|
|
202
206
|
this.passport =
|
|
203
207
|
this.config.passport === false
|
package/package.json
CHANGED