{"id":13493920,"url":"https://github.com/jlumbroso/react-github-login","last_synced_at":"2025-07-26T15:31:36.507Z","repository":{"id":22989444,"uuid":"74840181","full_name":"jlumbroso/react-github-login","owner":"jlumbroso","description":":octocat: A React Component for GitHub Login","archived":false,"fork":false,"pushed_at":"2022-04-14T10:49:55.000Z","size":80,"stargazers_count":95,"open_issues_count":17,"forks_count":49,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T08:08:44.763Z","etag":null,"topics":["github","login","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlumbroso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-26T17:26:01.000Z","updated_at":"2024-04-09T10:05:03.000Z","dependencies_parsed_at":"2022-08-07T10:16:31.228Z","dependency_job_id":null,"html_url":"https://github.com/jlumbroso/react-github-login","commit_stats":null,"previous_names":["checkr/react-github-login"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlumbroso%2Freact-github-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlumbroso%2Freact-github-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlumbroso%2Freact-github-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlumbroso%2Freact-github-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlumbroso","download_url":"https://codeload.github.com/jlumbroso/react-github-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227690998,"owners_count":17805023,"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","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":["github","login","react"],"created_at":"2024-07-31T19:01:20.018Z","updated_at":"2024-12-02T07:33:44.215Z","avatar_url":"https://github.com/jlumbroso.png","language":"JavaScript","readme":"# React GitHub Login\n\n![NPM](https://img.shields.io/npm/v/react-github-login.svg?style=flat)\n![CircleCI](https://circleci.com/gh/checkr/react-github-login.svg?style=shield\u0026circle-token=493b950057f69e68ac8698a9ee189b2132a296e4)\n\nReact component for [GitHub login](https://developer.github.com/v3/oauth/).\n\n## Usage\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport GitHubLogin from 'react-github-login';\n\nconst onSuccess = response =\u003e console.log(response);\nconst onFailure = response =\u003e console.error(response);\n\nReactDOM.render(\n  \u003cGitHubLogin clientId=\"ac56fad434a3a3c1561e\"\n    onSuccess={onSuccess}\n    onFailure={onFailure}/\u003e,\n  document.getElementById('example')\n);\n```\n\n### Props\n\n#### `clientId`\n\n`{string}` _required_\n\nClient ID for GitHub OAuth application.\n\n#### `redirectUri`\n\n`{string}`\n\nRegistered redirect URI for GitHub OAuth application.\n\n#### `scope`\n\n`{string}`\n\nScope for GitHub OAuth application. Defaults to `user:email`.\n\n#### `className`\n\n`{string}`\n\nCSS class for the login button.\n\n#### `buttonText`\n\n`{string}`\n\nText content for the login button.\n\n#### `onRequest`\n\n`{function}`\n\nCallback for every request.\n\n#### `onSuccess`\n\n`{function}`\n\nCallback for successful login. An object will be passed as an argument to the callback, e.g. `{ \"code\": \"...\" }`.\n\n#### `onFailure`\n\n`{function}`\n\nCallback for errors raised during login.\n\n\n## Development\n\n```sh\n$ npm start\n```\n\nWebpack development server starts at [http://localhost:8080](http://localhost:8080), loading [example/index.html](github.com/checkr/react-facebook-login/tree/master/example/index.html).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlumbroso%2Freact-github-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlumbroso%2Freact-github-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlumbroso%2Freact-github-login/lists"}