nodehero-authentication icon indicating copy to clipboard operation
nodehero-authentication copied to clipboard

What's the purpose of passing app to the passport init function?

Open jlvdh opened this issue 5 years ago • 1 comments

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

jlvdh avatar Apr 15 '19 13:04 jlvdh

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?

GorgeousPuree avatar May 24 '20 20:05 GorgeousPuree