Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jlvdh opened this issue Apr 15, 2019 · 1 comment
Open

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

jlvdh opened this issue Apr 15, 2019 · 1 comment

Comments

@jlvdh
Copy link

jlvdh commented Apr 15, 2019

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

@GorgeousPuree
Copy link

GorgeousPuree commented May 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants