mirror of
https://github.com/wassname/talk.git
synced 2026-10-04 13:10:23 +08:00
Updated docs, hook names
This commit is contained in:
1 parent
8d3524dd61
commit
c1dac11a2b
3 files changed
+12
-9
No files matched your search
@@ -377,12 +377,12 @@ if (process.env.TALK_FACEBOOK_APP_ID && process.env.TALK_FACEBOOK_APP_SECRET &&
|
||||
}
|
||||
|
||||
// Inject server route plugins.
|
||||
plugins.get('server', 'auth').forEach(({plugin, auth}) => {
|
||||
debug(`added plugin '${plugin.name}'`);
|
||||
plugins.get('server', 'passport').forEach((plugin) => {
|
||||
debug(`added plugin '${plugin.plugin.name}'`);
|
||||
|
||||
// Pass the passport.js instance to the plugin to allow it to inject it's
|
||||
// functionality.
|
||||
auth(passport);
|
||||
plugin.passport(passport);
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in new issue
Block a user