June 2014
Intermediate to advanced
696 pages
38h 52m
English
Once the passport NPM is installed, you need to define which authentication strategies you want to implement. Authentication strategies are source specific—so Passport provides separate authentication strategies for Google, Facebook, Twitter, etc.
Each authentication strategy comes packaged in its own NPM prefixed with passport-. This keeps your code base small and makes it easy to implement multiple strategies. For example, the following commands install the Google, Facebook, and Twitter NPMs:
npm install passport-google-google@0.3.0npm-install passport-facebook-facebook@1.0.3npm-install passport-twitter@1.0.2
Now you need to use require() to load a strategy before you can use it ...
Read now
Unlock full access