@ladjs/web 20.0.6 → 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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -198,10 +198,6 @@ 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
-
205
201
  // expose passport
206
202
  this.passport =
207
203
  this.config.passport === false
@@ -376,6 +372,10 @@ class Web {
376
372
  if (this.config.methodOverride)
377
373
  app.use(methodOverride(...this.config.methodOverride));
378
374
 
375
+ // allow hooks before passport to get setup
376
+ if (_.isFunction(this.config.hookBeforePassport))
377
+ this.config.hookBeforePassport(app);
378
+
379
379
  // passport
380
380
  if (this.passport) {
381
381
  app.use(this.passport.initialize());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/web",
3
3
  "description": "Web server for Lad",
4
- "version": "20.0.6",
4
+ "version": "20.0.7",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/web/issues",