Closed nikhilrayaprolu closed 7 years ago
this can be implemented using https://www.npmjs.com/package/angular2-oauth2 https://www.npmjs.com/package/ng2-facebook-sdk
then make some extra functions in the server side to read the token and get the user parameters (for this we already have some libraries on the backend) you can learn this from:- http://www.matthewtyler.io/handling-oauth2-with-node-js-and-angular-js-passport-to-the-rescue/ http://mherman.org/blog/2015/09/26/social-authentication-in-node-dot-js-with-passport/#.WFeSE2cvDQo https://devdactic.com/restful-api-user-authentication-1/
using the modules make you easy https://www.npmjs.com/package/passport-oauth2 https://www.npmjs.com/package/oauth2orize https://www.npmjs.com/package/passport-google-oauth20
23rd dec