angular2-social-login
Simple client side social authentication for Angular2 application based on our previous angular1's angularjs-social-login plugin.
Supported sites:
Getting started
Installation
via npm
npm install angular2-social-login --save
Adding angular2-social-login to your project
Add map
for angular2-social-login
in your systemjs.config
'angular2-social-login': 'node_modules/angular2-social-login/dist/bundles/angular2-social-login.min.js'
Main module configuration
;;;; let providers = "google": "clientId": "GOOGLE_CLIENT_ID" "linkedin": "clientId": "LINKEDIN_CLIENT_ID" "facebook": "clientId": "FACEBOOK_CLIENT_ID" "apiVersion": "<version>" //like v2.4 ; @ {} Angular2SocialLoginModule;
login()
and logout()
:
Component configuration for For login(provider: string)
provider is required it should be anyone(case-sensitive) "facebook", "google", "linkedin" .
...;...@ implements OnDestroy ... { } { thissub = this_auth } { this_auth
For example please visit https://github.com/heresy/angular2-social-login-example