nodehero-authentication
nodehero-authentication copied to clipboard
What's the purpose of passing app to the passport init function?
On line 17 in index.js app is passed to the init function:
require('./authentication').init(app)
What's the purpose of this? I tried without and it doesn't seem to affect functionality.
https://github.com/RisingStack/nodehero-authentication/blob/master/app/index.js#L17
What's the purpose of this? I tried without and it doesn't seem to affect functionality.
I don't understand it too. Did you get it?