{"id":31030134,"url":"https://github.com/cuongdevjs/google-facebook-signin-react","last_synced_at":"2025-09-13T22:58:53.795Z","repository":{"id":39673245,"uuid":"224389707","full_name":"cuongdevjs/google-facebook-signin-react","owner":"cuongdevjs","description":"social login react.js (facebook, google)","archived":false,"fork":false,"pushed_at":"2025-08-13T11:36:26.000Z","size":3676,"stargazers_count":5,"open_issues_count":86,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T13:25:44.502Z","etag":null,"topics":["button","facebook-login","google-login","react","reactjs","signin","sso","sso-login"],"latest_commit_sha":null,"homepage":"https://socialsso.netlify.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuongdevjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-11-27T09:10:52.000Z","updated_at":"2023-04-13T07:05:44.000Z","dependencies_parsed_at":"2024-02-12T04:22:30.803Z","dependency_job_id":"a9e12e46-a9c7-491a-892a-c50710d39d4b","html_url":"https://github.com/cuongdevjs/google-facebook-signin-react","commit_stats":null,"previous_names":["cuongstf/google-facebook-signin-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuongdevjs/google-facebook-signin-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongdevjs%2Fgoogle-facebook-signin-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongdevjs%2Fgoogle-facebook-signin-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongdevjs%2Fgoogle-facebook-signin-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongdevjs%2Fgoogle-facebook-signin-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongdevjs","download_url":"https://codeload.github.com/cuongdevjs/google-facebook-signin-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongdevjs%2Fgoogle-facebook-signin-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275038251,"owners_count":25394640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["button","facebook-login","google-login","react","reactjs","signin","sso","sso-login"],"created_at":"2025-09-13T22:58:10.890Z","updated_at":"2025-09-13T22:58:53.777Z","avatar_url":"https://github.com/cuongdevjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-facebook-signin-react\n[![npm version](https://badge.fury.io/js/google-facebook-signin-react.svg)](https://badge.fury.io/js/google-facebook-signin-react) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n#\n\n\u003e Social Single SignOn React.JS: (Google \u0026amp; Facebook) (Needed additional other social platform)\n\n#\n\n![Image](https://d3l69s690g8302.cloudfront.net/wp-content/uploads/2016/09/26191011/SCJZO.png)\n\n#\n\n## Install\n\n```\nnpm install --save google-facebook-signin-react\n```\n\n\n#### [Link Web: https://socialsso.netlify.com](https://socialsso.netlify.com)\n\n#### [Link Demo](https://codesandbox.io/s/google-facebook-signin-sso-reactjs-fum4f)\n\n#### [NPM](https://www.npmjs.com/package/google-facebook-signin-react)\n#### [Github](https://github.com/CuongStf/google-facebook-signin-react)\n\n\n## Contribute\nCreate pull request. Thanks ( needed additional github, instagram, twitter)\n\n## Usage\n\n```tsx\nimport React, { Component } from \"react\";\n\nimport { FacebookSignIn, GoogleSignIn } from \"sso-login-react\";\n\nexport default class App extends Component {\n  success(res) {\n    return new Promise((resolve, reject) =\u003e {\n      console.log(res);\n      resolve();\n    });\n  }\n\n  error(err) {\n    console.log(err);\n  }\n\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cFacebookSignIn\n          appId={\"YOUR_APP_ID\"}\n          onReject={this.error}\n          onResolve={this.success}\n        \u003e\n          Facebook\n        \u003c/FacebookSignIn\u003e\n        \u003cGoogleSignIn\n          client_id={\n            \"YOUR_CLIENT_ID\"\n          }\n          onReject={this.error}\n          onResolve={this.success}\n        \u003e\n          Google\n        \u003c/GoogleSignIn\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n## Props\n\n#\n\u003e ### Google Button\n\u003e [More detail: Google Developer](https://developers.google.com)\n\u003e\n#\n| Prop                  | Type                                | Default | Description |\n| :---------            | :-------:                           | :-----: | :----------- |\n| onResolve             | `promise function (required)`                     | `-`       | Response when logged |\n| onReject             | `function (required)`                     | `-`       | Return rrror |\n| client_id    | `string (require)`      | `-`       | id application |\n| className             | `string (optional)`                     | `-`       | class for button |\n| cookie_policy           | `string (optional)`                            | `single_host_origin`    |  |\n| scope             | `string (optional)`                     | `email profile`       |  |\n| fetch_basic_profile             | `boolean (optional)`                     | `true`       | get profile information |\n| hosted_domain             | `string (optional)`                     |`-`       |  |\n| openid_realm             | `string (optional)`                     | `-`       |  |\n| ux_mode    | `string (optional)`      | `popup`       | Text display when start touch |\n| redirect_uri           | `string (optional)`                            | `/`    | only mobile |\n| prompt             | `string (optional)`                     | `select_account`       | \"consent\", \"select_account\", \"none\" |\n| response_type             | `string (optional)`                     | `permission`       | \"id_token\", \"permission\", \"code\" |\n| login_hint             | `string (optional)`                     | `true`       | |\n| discoveryDocs             | `string (optional)`                     | `https://www.googleapis.com/discovery/v1/apis/drive/v3/rest`       | request permision |\n| access_type             | `string (optional)`                     | `online`       | \"online , \"offline|\n| isDisabled             | `boolean (optional)`                     | `true`       | |\n\n#\n\u003e ### Facebook Button\n\u003e [More detail: Facebook Developer](https://developers.facebook.com)\n#\n| Prop                  | Type                                | Default | Description |\n| :---------            | :-------:                           | :-----: | :----------- |\n| onResolve             | `promise function (required)`                     | `-`       | Response when logged |\n| onReject             | `function (required)`                     | `-`       | Return rrror |\n| appId    | `string (require)`      | `-`       | id application |\n| className             | `string (optional)`                     | `-`       | class for button |\n| scope             | `string (optional)`                     | `\"email, public_profile\"`       | separate by comma symbol |\n| redirect_uri           | `string (optional)`                            | `/`    | only mobile |\n| state           | `string (optional)`                            | `facebookdirect`    |  |\n| response_type             | `string (optional)`                     | `code`       |  |\n| auth_type             | `string (optional)`                     | `-`       |  |\n| return_scopes             | `boolean (optional)`                     | `true`       | return list scope in response |\n| enable_profile_selector             | `boolean (optional)`                     | `true`       |  |\n| profile_selector_id    | `boolean (optional)`      | `true`       |  |\n| language             | `string (optional)`                     | `vi_VN`       |  |\n| isDisabled             | `boolean (optional)`                     | `true`       | |\n| fieldsProfile             | `string (optional)`                     | `name, email, birthday`       | info field profile in response |\n| xfbml             | `boolean (optional)`                     | `true`        | enabled embedded iframe xml facebook |\n| version             | `string (optional)`                     | `v5.0`        |  |\n| cookie             | `boolean (optional)`                     | `true`        | enabled cookie send facebook |\n\n\n\n## License\nMIT © [CuongStf](https://github.com/CuongStf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongdevjs%2Fgoogle-facebook-signin-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongdevjs%2Fgoogle-facebook-signin-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongdevjs%2Fgoogle-facebook-signin-react/lists"}