{"version":3,"names":["AuthGithub","Auth","notificationIconURL","tokenName","tokenFromAuthInfo","authInfo","access_token","appInfo","oauthTokenURL","uuid","oauthURL","clientId","encodeURIComponent","redirectUri","load"],"sources":["auth-github.js"],"sourcesContent":["import Auth from \"./auth.js\"\n\nexport default class AuthGithub extends Auth {\n  \n  static get notificationIconURL() {\n    return 'https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png'\n  }\n  \n  static get tokenName() {\n    return \"githubToken\"\n  }\n  \n  static tokenFromAuthInfo(authInfo) {\n    return authInfo.access_token\n  }\n \n  static get appInfo() {\n    return {\n      \"clientId\": \"21b67bb82b7af444a7ef\",\n      \"redirectUri\": \"https://lively-kernel.org/lively4-auth/oauth/github.html\"\n    };\n  }\n  \n  static oauthTokenURL(uuid) {\n    return \"https://lively-kernel.org/lively4-auth/open_github_accesstoken?state=\"+uuid\n  }\n  \n  static oauthURL(uuid) {\n    return \"https://github.com/login/oauth/authorize/\" +\n      \"?client_id=\" + this.appInfo.clientId +\n      \"&response_type=token\" +\n      \"&scope=repo,user\" +\n      \"&state=\" + uuid +\n      \"&redirect_uri=\" + encodeURIComponent(this.appInfo.redirectUri);\n  }\n}\nAuthGithub.load()\n\n\n"],"mappings":";;;YAEqBA,UAAU;EAAA;EAAA;IAAA;MAFxBC,IAAI;IAAA;IAAA;MAAA;MAAA;MAAA;QAAA;UAAA;QAAA;QAAA;UAAJA,qCAAI;UAAA;QAAA;QAAA;QAAA;MAAA;MAAA,mBAEUD,UAAU,GAAhB,MAAMA,UAAU,SAASC,IAAI,CAAC;QAE3C,WAAWC,mBAAmB,GAAG;UAC/B,OAAO,yEAAyE;QAClF;QAEA,WAAWC,SAAS,GAAG;UACrB,OAAO,aAAa;QACtB;QAEA,OAAOC,iBAAiB,CAACC,QAAQ,EAAE;UACjC,OAAOA,QAAQ,CAACC,YAAY;QAC9B;QAEA,WAAWC,OAAO,GAAG;UACnB,OAAO;YACL,UAAU,EAAE,sBAAsB;YAClC,aAAa,EAAE;UACjB,CAAC;QACH;QAEA,OAAOC,aAAa,CAACC,IAAI,EAAE;UACzB,OAAO,uEAAuE,GAACA,IAAI;QACrF;QAEA,OAAOC,QAAQ,CAACD,IAAI,EAAE;UACpB,OAAO,2CAA2C,GAChD,aAAa,GAAG,IAAI,CAACF,OAAO,CAACI,QAAQ,GACrC,sBAAsB,GACtB,kBAAkB,GAClB,SAAS,GAAGF,IAAI,GAChB,gBAAgB,GAAGG,kBAAkB,CAAC,IAAI,CAACL,OAAO,CAACM,WAAW,CAAC;QACnE;MACF,CAAC;MAAA;QAAA;UAAA;QAAA;QAAA;UAAA,mBAjCoBb,2CAAU;UAAA;QAAA;QAAA;QAAA;MAAA;MAkC/BA,UAAU,CAACc,IAAI,EAAE;IAAA;EAAA;AAAA"}