Passport module wrapper built with passport
|true to use session||false|
if we use a session we must load the express session middleware
Now we define our passport strategies you can define as many strategies needed.
validate method will be called the strategy arguments.
Now we define the user serializer
Finally, we define strategy auth and callback routes.
We use authenticate middleware with given strategy.
Once the user is authenticated we can use the