{"id":22432229,"url":"https://github.com/normalhuman01/twitch-login-sdk","last_synced_at":"2025-03-27T07:41:46.527Z","repository":{"id":212764243,"uuid":"732262645","full_name":"normalhuman01/twitch-login-sdk","owner":"normalhuman01","description":"a integrate the twitch login system into your amazing angular project","archived":false,"fork":false,"pushed_at":"2023-12-16T04:58:45.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:45:31.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/normalhuman01.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-16T04:58:09.000Z","updated_at":"2023-12-16T04:58:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc4b4c82-b13b-47e7-9e31-0d5d77bde5ec","html_url":"https://github.com/normalhuman01/twitch-login-sdk","commit_stats":null,"previous_names":["normalhuman01/twitch-login-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Ftwitch-login-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Ftwitch-login-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Ftwitch-login-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Ftwitch-login-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normalhuman01","download_url":"https://codeload.github.com/normalhuman01/twitch-login-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806000,"owners_count":20675291,"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":[],"created_at":"2024-12-05T22:11:03.457Z","updated_at":"2025-03-27T07:41:46.504Z","avatar_url":"https://github.com/normalhuman01.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/leifermendez"],"categories":[],"sub_categories":[],"readme":"\n  \n# Angular Twitch Login SDK\n\u003ca href=\"https://www.buymeacoffee.com/leifermendez\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\nIntegrate the Twitch login system into your amazing Angular project\n\n\u003cimg src=\"https://badgen.net/npm/dy/twitch-login-sdk\" /\u003e \u003cimg src=\"https://badgen.net/npm/v/twitch-login-sdk\" /\u003e  \u003cimg src=\"https://img.shields.io/github/stars/leifermendez/twitch-login-sdk\" /\u003e \u003cimg src=\"https://img.shields.io/github/license/leifermendez/twitch-login-sdk\" /\u003e\n\n---\n\n[Live demo](https://twitch-login-sdk.stackblitz.io)\n\n[Stackblitz](https://stackblitz.com/edit/twitch-login-sdk)\n\n![](https://i.imgur.com/7UlkITH.png)\n\n![](https://i.imgur.com/Nri25rj.png)\n\n### Install\n`npm i twitch-login-sdk@latest --save`\n\n### Import\n\n\n__app.module.ts__\n\n```typescript\nimport {BrowserModule} from '@angular/platform-browser';  \nimport {NgModule} from '@angular/core';  \nimport {AppComponent} from './app.component';  \n/** IMPORT **/\nimport  {TwitchLoginSdkModule} from \"twitch-login-sdk\"; 👈\n  \n@NgModule({  \n  declarations: [  \n    AppComponent  \n  ],  \n  imports: [  \n    BrowserModule,   \n\tTwitchLoginSdkModule.forRoot({ \n\t\ttwitchId:  \"xi7fl9ld6dlikhbv8xbfu77bzyjlkw\", //\u003c******* YOUR TWITCH_ID 👈\n\t\tredirect:  \"https://twitch-sdk-login.stackblitz.io\" //\u003c***** YOUR CALLBACK REDIRECT 👈\n\t})\n  ],  \n  providers: [],  \n  bootstrap: [AppComponent]  \n})  \nexport class AppModule {  \n}\n```\n__app.component.html__\n\n__scopes:__ Default \n`user:read:email+openid+analytics:read:games+user:read:broadcast`\n\n```html\n\n\u003c!-- Default --\u003e\n\u003ctwitch-login\n(callback)=\"out($event)\"\nlabel=\"Login Twitch 🚀\"\n\u003e\n\u003c/twitch-login\u003e\n\n\u003c!-- Pass scopes--\u003e\n\u003ctwitch-login\nscopes=\"user:read:email+openid+analytics:read:games\"\n(callback)=\"out($event)\"\nlabel=\"Login Twitch 🚀\"\u003e\n\u003c/twitch-login\u003e\n```\n\n### Use\n\nUse in your component\n```typescript\nimport  {Component,  OnInit}  from  '@angular/core'; \n\n@Component({  \n  selector: 'app-root',  \n  templateUrl: './app.component.html',  \n  styleUrls: ['./app.component.css']  \n})  \nexport class AppComponent implements  OnInit {  \n\tpublic outCb:  any;\n\tconstructor(){}\n\t\n\tngOnInit() {\n\t\n\t}\n\n\t/** Callback Data **/\n\tout($event): any   {\n    \tthis.outCb = $event;\n  \t}\n}\n```\n\n### Customize\n\n__buttom-twitch-login__: Classname for button\n\n![](https://i.imgur.com/7wguNoA.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Ftwitch-login-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormalhuman01%2Ftwitch-login-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Ftwitch-login-sdk/lists"}