{"id":13604361,"url":"https://github.com/andrelmlins/svelte-github-login","last_synced_at":"2025-04-11T23:32:23.497Z","repository":{"id":36939323,"uuid":"225764365","full_name":"andrelmlins/svelte-github-login","owner":"andrelmlins","description":"Github Login Component to Svelte","archived":false,"fork":false,"pushed_at":"2023-01-06T14:12:50.000Z","size":2206,"stargazers_count":12,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T04:51:09.649Z","etag":null,"topics":["github","library","login","svelte"],"latest_commit_sha":null,"homepage":"https://svelte-github-login.netlify.com/","language":"Svelte","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/andrelmlins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T02:47:16.000Z","updated_at":"2023-07-08T04:54:44.000Z","dependencies_parsed_at":"2023-01-17T07:30:57.927Z","dependency_job_id":null,"html_url":"https://github.com/andrelmlins/svelte-github-login","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-github-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-github-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-github-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-github-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrelmlins","download_url":"https://codeload.github.com/andrelmlins/svelte-github-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248495214,"owners_count":21113584,"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","library","login","svelte"],"created_at":"2024-08-01T19:00:44.206Z","updated_at":"2025-04-11T23:32:18.487Z","avatar_url":"https://github.com/andrelmlins.png","language":"Svelte","funding_links":[],"categories":["UI Componentes"],"sub_categories":["Comunidade Global"],"readme":"# Svelte Github Login\n\n[![npm version](https://badge.fury.io/js/svelte-github-login.svg)](https://www.npmjs.com/package/svelte-github-login) \u0026bull; [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/svelte-github-login/blob/master/LICENSE) \u0026bull; [![Build Status](https://travis-ci.com/andrelmlins/svelte-github-login.svg?branch=master)](https://travis-ci.com/andrelmlins/svelte-github-login) \u0026bull; [![Netlify Status](https://api.netlify.com/api/v1/badges/bba67805-d9ab-4609-9027-a86842c5b6bb/deploy-status)](https://app.netlify.com/sites/xenodochial-saha-aa83fd/deploys) \u0026bull; [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/andrelmlins/svelte-github-login.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/andrelmlins/svelte-github-login/context:javascript)\n\nGithub Login Component to Svelte\n\n## Installation\n\n```\nnpm i svelte-github-login\n// OR\nyarn add svelte-github-login\n```\n\n\u003cem\u003eNote: to use this library in sapper, install as devDependency. See the [link](https://github.com/sveltejs/sapper-template#using-external-components).\u003c/em\u003e\n\n## Demo [Link](https://svelte-github-login.netlify.com/)\n\nLocal demo:\n\n```\ngit clone https://github.com/andrelmlins/svelte-github-login.git\ncd svelte-github-login\nnpm install \u0026\u0026 npm run dev\n```\n\n## Examples\n\nAn example of how to use the library:\n\n```js\n\u003cscript\u003e\n  import GithubLogin from \"svelte-github-login\";\n\u003c/script\u003e\n\n\u003cGithubLogin\n  clientId=\"XXX\"\n  scope=\"user:email\"\n  redirectUri=\"http://localhost:5000/\"\n  on:success={params =\u003e console.log(params)}\n  on:error={error =\u003e console.log(error)}\n  let:onLogin\n\u003e\n  \u003cbutton on:click={onLogin}\u003eGithub Login\u003c/button\u003e\n\u003c/GithubLogin\u003e\n```\n\n## Properties\n\nRaw component props (before transform):\n\n| Prop        | Type   | Description                                                                 |\n| ----------- | ------ | --------------------------------------------------------------------------- |\n| clientId    | string | Client ID for GitHub OAuth application                                      |\n| scope       | string | A space-delimited list of permissions that the application requires         |\n| redirectUri | string | Registered redirect URI for GitHub OAuth application                        |\n| state       | string | Value created by the maintenance state between the request and the callback |\n| allowSignup | string | Option of unauthenticated users to register                                 |\n| login       | string | Suggests a specific account to use for signing in and authorizing the app.  |\n\n## Events\n\n| Prop    | Type | Description       |\n| ------- | ---- | ----------------- |\n| success | func | Call with success |\n| error   | func | Call with error   |\n| request | func | Call with offset  |\n\n## Slot Properties\n\n| Prop    | Type | Description    |\n| ------- | ---- | -------------- |\n| onLogin | func | Call for login |\n\n## NPM Statistics\n\nDownload stats for this NPM package\n\n[![NPM](https://nodei.co/npm/svelte-github-login.png)](https://nodei.co/npm/svelte-github-login/)\n\n## License\n\nSvelte Github Login is open source software [licensed as MIT](https://github.com/andrelmlins/svelte-github-login/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-github-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrelmlins%2Fsvelte-github-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-github-login/lists"}