Skip to content

Commit

Permalink
feat: added hookBeforePassport option
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Feb 1, 2023
1 parent b64d120 commit 6bbb1b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ class Web {
: this.config.redis;
app.context.client = this.client;

// allow hooks before passport to get setup
if (_.isFunction(this.config.hookBeforePassport))
this.config.hookBeforePassport(app);

// expose passport
this.passport =
this.config.passport === false
Expand Down

0 comments on commit 6bbb1b4

Please sign in to comment.