I am fairly new to javascript and am trying to make a simple login restful api with the passport middleware. I know that when i do require('xxxxx'); I am bringing a module in for use.
I found some code online and it has this line "require('./config/passport')(passport);"
I am wondering what it does and how this line differs from just doing "require(passport);"?
Any help would be appreciated.