{"_id":"@digione/ngx-social-login","_rev":"3-bce16e1fee6ffec977c62448deebe51b","name":"@digione/ngx-social-login","dist-tags":{"latest":"0.0.1-beta2"},"versions":{"0.0.1-alpha1":{"name":"@digione/ngx-social-login","version":"0.0.1-alpha1","keywords":["angular","angular4","angular8","angular9","angular10","angular-social-login","social-authentication","social-login","google-authentication","facebook-authentication","amazon-authentication"],"author":{"name":"Jaibatrik Dutta","email":"jaibatrik@gmail.com"},"license":"MIT","_id":"@digione/ngx-social-login@0.0.1-alpha1","maintainers":[{"name":"jirayu","email":"topseom@gmail.com"}],"homepage":"https://github.com/abacritt/angularx-social-login#readme","bugs":{"url":"https://github.com/abacritt/angularx-social-login/issues"},"dist":{"shasum":"67ca739ece79aa452c295d38cf6909177b4e2c49","tarball":"https://registry.npmjs.org/@digione/ngx-social-login/-/ngx-social-login-0.0.1-alpha1.tgz","fileCount":38,"integrity":"sha512-QkL/S553fvXzQ8lJrWPkxgmXP2rpcva1QotfXTbgogsir3kBIvmPYLkN2Sw+iHBVt8bKLmQDxL2OkLc/nksTVg==","signatures":[{"sig":"MEQCIFaq4nx8/AV5rACj96lVV2ooM3ABe9tDCxyqb2/MvHI5AiAnEkDJD26B3lH64+k7AY2NNK/8RAwOdfo1anzJ8zb9iQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":492918},"main":"bundles/digione-ngx-social-login.umd.js","es2015":"fesm2015/digione-ngx-social-login.js","module":"fesm2015/digione-ngx-social-login.js","esm2015":"esm2015/digione-ngx-social-login.js","typings":"digione-ngx-social-login.d.ts","_npmUser":{"name":"jirayu","email":"topseom@gmail.com"},"fesm2015":"fesm2015/digione-ngx-social-login.js","metadata":"digione-ngx-social-login.metadata.json","repository":{"url":"git+https://github.com/abacritt/angularx-social-login.git","type":"git"},"_npmVersion":"6.14.16","description":"Social login and authentication module for Angular 9+. Supports authentication with Google, Facebook, Amazon, and VK. Can be extended to other providers also.","directories":{},"sideEffects":false,"_nodeVersion":"12.22.12","dependencies":{"tslib":"^2.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@angular/core":"^9.0.0 || ^10.0.0 || ^11.0.0","@angular/common":"^9.0.0 || ^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ngx-social-login_0.0.1-alpha1_1762146617773_0.3910397120308726","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-beta1":{"name":"@digione/ngx-social-login","version":"0.0.1-beta1","keywords":["angular","angular4","angular8","angular9","angular10","angular-social-login","social-authentication","social-login","google-authentication","facebook-authentication","amazon-authentication"],"author":{"name":"Jaibatrik Dutta","email":"jaibatrik@gmail.com"},"license":"MIT","_id":"@digione/ngx-social-login@0.0.1-beta1","maintainers":[{"name":"jirayu","email":"topseom@gmail.com"}],"homepage":"https://github.com/abacritt/angularx-social-login#readme","bugs":{"url":"https://github.com/abacritt/angularx-social-login/issues"},"dist":{"shasum":"f65ffab7da55ba81a734bf039e2b05631f1445a5","tarball":"https://registry.npmjs.org/@digione/ngx-social-login/-/ngx-social-login-0.0.1-beta1.tgz","fileCount":40,"integrity":"sha512-MizBSuxy2ri9cy4Go18FgtG4PfPzJcOe9L66eWIgCAAkVd2HyOjUVN3nSme1SRyys1IXgSoY1ddyM0JBWKDakA==","signatures":[{"sig":"MEYCIQCWHN9qDwsK80knFZAqT3OM24Btba9WxwWAollpe2Kr6wIhAPJL8pjx0w4Uoe50+tMjVsAFAGwrLuyW8ax7lYAFDOP/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":497338},"main":"bundles/digione-ngx-social-login.umd.js","es2015":"fesm2015/digione-ngx-social-login.js","module":"fesm2015/digione-ngx-social-login.js","esm2015":"esm2015/digione-ngx-social-login.js","typings":"digione-ngx-social-login.d.ts","_npmUser":{"name":"jirayu","email":"topseom@gmail.com"},"fesm2015":"fesm2015/digione-ngx-social-login.js","metadata":"digione-ngx-social-login.metadata.json","repository":{"url":"git+https://github.com/abacritt/angularx-social-login.git","type":"git"},"_npmVersion":"6.14.16","description":"Social login and authentication module for Angular 9+. Supports authentication with Google, Facebook, Amazon, and VK. Can be extended to other providers also.","directories":{},"sideEffects":false,"_nodeVersion":"12.22.12","dependencies":{"tslib":"^2.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@angular/core":"^9.0.0 || ^10.0.0 || ^11.0.0","@angular/common":"^9.0.0 || ^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ngx-social-login_0.0.1-beta1_1762148177347_0.6549806853474454","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-beta2":{"name":"@digione/ngx-social-login","version":"0.0.1-beta2","description":"Social login and authentication module for Angular 9+. Supports authentication with Google, Facebook, Amazon, and VK. Can be extended to other providers also.","repository":{"type":"git","url":"git+https://github.com/abacritt/angularx-social-login.git"},"author":{"name":"Jaibatrik Dutta","email":"jaibatrik@gmail.com"},"keywords":["angular","angular4","angular8","angular9","angular10","angular-social-login","social-authentication","social-login","google-authentication","facebook-authentication","amazon-authentication"],"license":"MIT","bugs":{"url":"https://github.com/abacritt/angularx-social-login/issues"},"dependencies":{"tslib":"^2.0.0"},"peerDependencies":{"@angular/common":"^9.0.0 || ^10.0.0 || ^11.0.0","@angular/core":"^9.0.0 || ^10.0.0 || ^11.0.0"},"main":"bundles/digione-ngx-social-login.umd.js","module":"fesm2015/digione-ngx-social-login.js","es2015":"fesm2015/digione-ngx-social-login.js","esm2015":"esm2015/digione-ngx-social-login.js","fesm2015":"fesm2015/digione-ngx-social-login.js","typings":"digione-ngx-social-login.d.ts","metadata":"digione-ngx-social-login.metadata.json","sideEffects":false,"homepage":"https://github.com/abacritt/angularx-social-login#readme","_id":"@digione/ngx-social-login@0.0.1-beta2","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-7REIxqSzqCk2pt3roigqy48P0kfiBXKlLf9OplI43yedj5MuMBwEmMPDYl+foujByp8BCYEU9/lJNhWMl2d35g==","shasum":"2a19d54bd9f80720cd929dca731c5711350fd771","tarball":"https://registry.npmjs.org/@digione/ngx-social-login/-/ngx-social-login-0.0.1-beta2.tgz","fileCount":40,"unpackedSize":498145,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDCH0fv98Vq2ZuwcjzohRt78bnSEHfdxja+qPniaLeBoAiEA3/Id5150jA6ppSwfVI7RBlmpRHM0fR6w0t5znokTAVc="}]},"_npmUser":{"name":"jirayu","email":"topseom@gmail.com"},"directories":{},"maintainers":[{"name":"jirayu","email":"topseom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ngx-social-login_0.0.1-beta2_1764749669729_0.9470704991310228"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-03T05:10:17.720Z","modified":"2025-12-03T08:14:30.098Z","0.0.1-alpha1":"2025-11-03T05:10:17.971Z","0.0.1-beta1":"2025-11-03T05:36:17.545Z","0.0.1-beta2":"2025-12-03T08:14:29.887Z"},"bugs":{"url":"https://github.com/abacritt/angularx-social-login/issues"},"author":{"name":"Jaibatrik Dutta","email":"jaibatrik@gmail.com"},"license":"MIT","homepage":"https://github.com/abacritt/angularx-social-login#readme","keywords":["angular","angular4","angular8","angular9","angular10","angular-social-login","social-authentication","social-login","google-authentication","facebook-authentication","amazon-authentication"],"repository":{"type":"git","url":"git+https://github.com/abacritt/angularx-social-login.git"},"description":"Social login and authentication module for Angular 9+. Supports authentication with Google, Facebook, Amazon, and VK. Can be extended to other providers also.","maintainers":[{"name":"jirayu","email":"topseom@gmail.com"}],"readme":"# Angular Social Login\n\n[![Gitter](https://badges.gitter.im/angularx-social-login/community.svg)](https://gitter.im/angularx-social-login/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\nSocial login and authentication module for Angular 9+. Supports authentication with **Google**, **Facebook**, **Amazon**, and **VK** out of the box. Can be extended to other providers also.\n\nCheck out the [demo](https://abacritt.github.io/angularx-social-login/).\n\n> Note: For compatibility with older versions Angular (e.g. Angular 8 and older), please use an older version of the library. Check [this comment on the compatibility with Angular versions](https://github.com/abacritt/angularx-social-login/pull/286#discussion_r449864732) and [this comment on how to use the older version of the library](https://github.com/abacritt/angularx-social-login/issues/283#issuecomment-652930750).\n\n## Getting started\n\n### Install via npm\n\n```sh\nnpm i angularx-social-login\n```\n\n### Import the module\n\nIn your `AppModule`, import the `SocialLoginModule`\n\n```javascript\nimport { SocialLoginModule, SocialAuthServiceConfig } from 'angularx-social-login';\nimport {\n  GoogleLoginProvider,\n  FacebookLoginProvider\n} from 'angularx-social-login';\n\n@NgModule({\n  declarations: [\n    ...\n  ],\n  imports: [\n    ...\n    SocialLoginModule\n  ],\n  providers: [\n    {\n      provide: 'SocialAuthServiceConfig',\n      useValue: {\n        autoLogin: false,\n        providers: [\n          {\n            id: GoogleLoginProvider.PROVIDER_ID,\n            provider: new GoogleLoginProvider(\n              'clientId'\n            )\n          },\n          {\n            id: FacebookLoginProvider.PROVIDER_ID,\n            provider: new FacebookLoginProvider('clientId')\n          }\n        ]\n      } as SocialAuthServiceConfig,\n    }\n  ],\n  bootstrap: [...]\n})\nexport class AppModule { }\n```\n\n### Sign in and out users\n\n```javascript\n\nimport { SocialAuthService } from \"angularx-social-login\";\nimport { FacebookLoginProvider, GoogleLoginProvider } from \"angularx-social-login\";\n\n@Component({\n  selector: 'app-demo',\n  templateUrl: './demo.component.html',\n  styleUrls: ['./demo.component.css']\n})\nexport class DemoComponent implements OnInit {\n\n  constructor(private authService: SocialAuthService) { }\n\n  signInWithGoogle(): void {\n    this.authService.signIn(GoogleLoginProvider.PROVIDER_ID);\n  }\n\n  signInWithFB(): void {\n    this.authService.signIn(FacebookLoginProvider.PROVIDER_ID);\n  }\n\n  signOut(): void {\n    this.authService.signOut();\n  }\n\n}\n```\n\n### Subscribe to the authentication state\n\nYou are notified when user logs in or logs out. You receive a `SocialUser` object when the user logs in and a `null` when the user logs out. `SocialUser` object contains basic user information such as name, email, photo URL, etc. along with the `auth_token`. You can communicate the `auth_token` to your server to authenticate the user in server and make API calls from server.\n\n```javascript\nimport { SocialAuthService } from \"angularx-social-login\";\nimport { SocialUser } from \"angularx-social-login\";\n\n@Component({\n  selector: 'app-demo',\n  templateUrl: './demo.component.html',\n  styleUrls: ['./demo.component.css']\n})\nexport class DemoComponent implements OnInit {\n\n  user: SocialUser;\n  loggedIn: boolean;\n\n  constructor(private authService: SocialAuthService) { }\n\n  ngOnInit() {\n    this.authService.authState.subscribe((user) => {\n      this.user = user;\n      this.loggedIn = (user != null);\n    });\n  }\n\n}\n```\n\n### Display the user information\n\n```html\n<img src=\"{{ user.photoUrl }}\">\n<div>\n  <h4>{{ user.name }}</h4>\n  <p>{{ user.email }}</p>\n</div>\n```\n\n## Specifying custom scopes, fields etc. on initialization\n\n```javascript\nconst fbLoginOptions = {\n  scope: 'pages_messaging,pages_messaging_subscriptions,email,pages_show_list,manage_pages',\n  return_scopes: true,\n  enable_profile_selector: true\n}; // https://developers.facebook.com/docs/reference/javascript/FB.login/v2.11\n\nconst googleLoginOptions = {\n  scope: 'profile email'\n}; // https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2clientconfig\n\nconst vkLoginOptions = {\n  fields: 'photo_max,contacts', // Profile fields to return, see: https://vk.com/dev/objects/user\n  version: '5.124', // https://vk.com/dev/versions\n}; // https://vk.com/dev/users.get\n\nlet config = new AuthServiceConfig([\n  {\n    id: GoogleLoginProvider.PROVIDER_ID,\n    provider: new GoogleLoginProvider(\"Google-OAuth-Client-Id\", googleLoginOptions)\n  },\n  {\n    id: FacebookLoginProvider.PROVIDER_ID,\n    provider: new FacebookLoginProvider(\"Facebook-App-Id\", fbLoginOptions)\n  },\n  {\n    id: VKLoginProvider.PROVIDER_ID,\n    provider: new VKLoginProvider(\"VK-App-Id\", vkLoginOptions)\n  },\n]);\n```\n\n## Specifying custom scopes, fields etc. on login\n\n```javascript\nconst fbLoginOptions = {\n  scope: 'pages_messaging,pages_messaging_subscriptions,email,pages_show_list,manage_pages'\n}; // https://developers.facebook.com/docs/reference/javascript/FB.login/v2.11\n\nthis.authService.signIn(FacebookLoginProvider.PROVIDER_ID, fbLoginOptions);\n```\n\n## Running the demo app\n\n```sh\nng serve\n```\n","readmeFilename":"README.md"}