{"_id":"@hewmen/passport-twitch","_rev":"5-71639900eb5c7defb30a9b05129790dd","name":"@hewmen/passport-twitch","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"private":false,"dependencies":{"passport-oauth2":"^1.4.0"},"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^16.11.1","@types/passport-oauth2":"^1.4.11","@typescript-eslint/eslint-plugin":"^5.4.0","eslint":"^8.2.0","eslint-config-recommended":"^4.1.0","eslint-plugin-eslint-comments":"^3.2.0","jest":"^27.3.1","passport":"^0.5.0","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typedoc":"^0.22.9","typedoc-plugin-markdown":"^3.11.6","typescript":"^4.4.4"},"keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"main":"./dist/cjs/index.js","name":"@hewmen/passport-twitch","scripts":{"build":"tsc","format":"prettier --write \"**/*.{js,json,md,ts}\"","prepare":"npm run build","test":"jest","lint":"eslint ./src","docs":"typedoc --out ./docs ./src/index.ts","example":"ts-node ./example/index.ts"},"types":"./dist/cjs/index.d.ts","version":"1.0.0","license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"481d8ff8f619e459b49877f893bd088936e727ed","bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"homepage":"https://github.com/hewmen/passport-twitch#readme","_id":"@hewmen/passport-twitch@1.0.0","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-1qzIvWQ4v24KkGV0VvpUOA/NPNJGkgeTcL9fHq7MojSOCpQNNBWsmFblT29+Wn+wF48gMEiibFnCpGEpWig8og==","shasum":"38fbb3156f89360ccec8a36454c7c18fde1819ee","tarball":"https://registry.npmjs.org/@hewmen/passport-twitch/-/passport-twitch-1.0.0.tgz","fileCount":4,"unpackedSize":10504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqBlgCRA9TVsSAnZWagAAsP4QAJWADLJC4PEU5jMDbNPZ\nop7DR6ny06hPnf1h4J6sFyvHVwqRBExSmELzmmuOrvgeWPFmcJHNpQvXlNmG\nDKlMhOmlNNrbTlyF8DQhvQ3a+hYZjj9hgPMC9KkVofug2vIdE2IZJpwkC6+C\ncxEsG9jjma22qHBxVesH4ykjH/LZkf1ewwJXALrWF4Y3rmH9NkitGPpJSyTO\nD4i7FaLgAyLkxuPtXluRdTmQ+OM9iJ02tiNf5+2k82qrYFdH7hl3whOH5XOm\nXsE48f1EPd0U+ss77LOZpTZp8L7zzB5+gfHZ3xkI/cWQcM6USP0BMsadNkI4\nMkD1IcyDNavukp6j6NBPjeWiM62zrAGtoHuIbwoxdhKda1iqOpVhXUv/QyEa\nd0cY5ujSqvMsJbkBKB0ryAVu4ud/ehSqjcod9bZz1iejH8Qnd6JBwFgSimWx\nKCcDdCs54LITXZ75uZvR0Tv0CHpP2rk3QJCbmsh+Pkj7jC0ef1eDTMmW3KZF\nacg8cLSrSrquz6S7Y01wAy+KQQ5O9c9BWpopRt9RYKsPhk+vn1c2ai+P+t14\nU08g7+dW7VsMMgviG6wsH6ZI6wJuJ/lg5BOHdvIT1HwsL+XWwfgWQwQnMC43\n7YxnPhFbCc5OomnEYvWJL6VopOf8mQQ2Oof0wTUwOkkXk8U5Fs/qNLiCwI1J\n8Suu\r\n=Ex6A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0jfQVXH1a0otWZnMDLC+1c+aLQIUorgIldSnO7NOpAAiEA0gXmaMVWzkvOJ/KcDyw/nyfg4WTnrc3tL4Qm6vO22zM="}]},"_npmUser":{"name":"srhodes-bmt","email":"srhodes@bmt.world"},"directories":{},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch_1.0.0_1638406496310_0.41765143758195244"},"_hasShrinkwrap":false},"1.0.1":{"private":false,"dependencies":{"passport-oauth2":"^1.4.0"},"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^16.11.1","@types/passport-oauth2":"^1.4.11","@typescript-eslint/eslint-plugin":"^5.4.0","eslint":"^8.2.0","eslint-config-recommended":"^4.1.0","eslint-plugin-eslint-comments":"^3.2.0","jest":"^27.3.1","passport":"^0.5.0","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typedoc":"^0.22.9","typedoc-plugin-markdown":"^3.11.6","typescript":"^4.4.4"},"keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"main":"./dist/cjs/index.js","name":"@hewmen/passport-twitch","scripts":{"build":"tsc --p ./tsconfig.build.json","format":"prettier --write \"**/*.{js,json,md,ts}\"","prepare":"npm run build","test":"jest","lint":"eslint ./src","docs":"typedoc --out ./docs ./src/index.ts","example":"ts-node ./example/index.ts"},"types":"./dist/cjs/index.d.ts","version":"1.0.1","license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"5955a9e93dc825449ea52a9470a1d26476451b95","bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"homepage":"https://github.com/hewmen/passport-twitch#readme","_id":"@hewmen/passport-twitch@1.0.1","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-jICvbYDfr1eCRgGLpwSS4yK22N/G4kLkCsDtxc1Mc2E/JJC0REG5GFpn4h/QqWthmJVrq2/WQWxfkk3xkNbLhQ==","shasum":"9700d0c6e3eb300dde3d6c3ad99312b00fb78253","tarball":"https://registry.npmjs.org/@hewmen/passport-twitch/-/passport-twitch-1.0.1.tgz","fileCount":12,"unpackedSize":55354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrlt4CRA9TVsSAnZWagAA+DUP/RbzqxDMnKZwi0PanE1q\n1W4Jy+6SIjHyk/tqyzIHQ3nDH+dMtMNoLNxvdKJAbizP6GDrbyn/Tf+2Hzwn\nTGqs39XsWEM58PXLhAWKtNJ93ai14o5K97MK997PG52iVweJplTnNyiuMw/K\nHxOp5wS0QHv6STTbtmYClxUjWqWiwFZXjKWaiIo0PqustXVjgQfn/gGYq4XQ\nx5Hm1s2m/6l6pcn1oc3enQRdpY4C1Y/VWw3Sb6fNxwgy8cU8ewVg5zRVImQq\nMf6D0Mz3KpeZl98O6prkM9N8AtB34YHTiWA3P5Tba5sDVJYc8+T+GJWqiLO3\nRXjeJPVqJ+WdwP0zZ9OFdDab3D8g5QE9zJWchQzFs6xRAZkGIA5J0zLfBt8q\npx5oYiYW+ygXxYeD32yL8T7wdhGSKCYgflwAxyUtKrhNGA542Wh3960lijV3\nAUNzB5l1dsuv+s+7e0JzGfbp1TMssjqaSVXpqPP0Nh7IoFOU7mGragLh3yJ2\nIpMs6H0oy/I3p5S4CdIjfhowVc7EX6EdDPs/seixP8Y2XeuXBS1xmMgf4Fj5\nW3d6dOqO3EiYvAqTSL+U5ZVj3WXyTH4QcV7IgOdWHEFU2OWun0WCjZhlAw9b\nPo7TCp41LN2tVuFhf+R+3UL7xEJPYqO+IaHPcCV4UNJWuyN/JcGM7owWVltO\nMycf\r\n=Y0A7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDaIXAfVJppbIW9j9gC9SGoSTi1HtMMa3x4vTw6XcN9oAiAGC0/C4dWQjR8aBStQyKZ2tSCXdxls673oWRUvPkspJw=="}]},"_npmUser":{"name":"srhodes-bmt","email":"srhodes@bmt.world"},"directories":{},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch_1.0.1_1638816631918_0.9399555788800102"},"_hasShrinkwrap":false},"1.0.2":{"private":false,"dependencies":{"passport-oauth2":"^1.4.0"},"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^16.11.1","@types/passport-oauth2":"^1.4.11","@typescript-eslint/eslint-plugin":"^5.4.0","eslint":"^8.2.0","eslint-config-recommended":"^4.1.0","eslint-plugin-eslint-comments":"^3.2.0","jest":"^27.3.1","passport":"^0.5.0","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typedoc":"^0.22.9","typedoc-plugin-markdown":"^3.11.6","typescript":"^4.4.4"},"keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"main":"./dist/cjs/index.js","name":"@hewmen/passport-twitch","scripts":{"build":"tsc --p ./tsconfig.build.json","format":"prettier --write \"**/*.{js,json,md,ts}\"","prepare":"npm run build","test":"jest","lint":"eslint ./src","docs":"typedoc --out ./docs ./src/index.ts","example":"ts-node ./example/index.ts"},"types":"./dist/cjs/index.d.ts","version":"1.0.2","license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"5955a9e93dc825449ea52a9470a1d26476451b95","bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"homepage":"https://github.com/hewmen/passport-twitch#readme","_id":"@hewmen/passport-twitch@1.0.2","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-eGx7MBQNiKMc4xGiZdlMh12/vd2kZMJP9ybHKOgK193ElzvOyhqzJjAlFczw05nLTD2OPzrNiUTvfT/LYsge0Q==","shasum":"dcb87ed9e669bea4f39e3c160fb96b12460ad935","tarball":"https://registry.npmjs.org/@hewmen/passport-twitch/-/passport-twitch-1.0.2.tgz","fileCount":12,"unpackedSize":55757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrl27CRA9TVsSAnZWagAAqXsP/1t5hiPXQnqHATZunNZo\nk/a+gIJLUgwAPcoCt73t77pDPRPUEQI8ymfJRxgFYYvGpDnWKlMYskBNCsj3\nyLKZ2ze/FhjDh7NHfKSK7phIFkRmO8rvgdrsU54ejSMKgwfIgRg75Ewz9N3A\nuLKHkWOT4KaCq3x1LOBVI7Uk/baJTMcx14Vv6jiKJX3EsMzhUY9qQuEzecWe\nHxGCgO8u/YA9oNEq7lu7HeagL8j6Kp7M8JYUZnlGO0XSgXhitUlAAM85Yqwu\nfcPTHlbVATjZYM0wNaYHi1y4wu0oWVOoehFSQcybU4sU5AplMWT+Ixx0x4Hw\nhR8lB5JalN7woYhu2p0/fH09+lfIrl0A47luWmgsgWJJ5MJDsv0kr7lqHu0I\nS46ibC4/2dyNe6ifF7/7yjDsOxbT+XR/O3D1XoC+mKv8yxUtptzlbXo4UlE7\nIYs3IdBerHMvSINKX+DhAN+4o+B7G8vQVXHx+O0BkPZh/Vl36mE27OvfOqEo\n57k3AW9a3W+hYJbamYAmx3rw/Lmu0JvbJ5MjYsUuvlABCf41WU3jLlt9XpWr\nMoH7Je5ZOOvu8pbDGFfWEP/Eg9WDjO01249FBcQrohWVrEWwvXnqDyAiCp2u\nYl1WjN+D+KB3hmZEkUN5pgehxXeH8mEMd0bHsC9F7rNUysDEKtfIramDDat9\nrpMq\r\n=xGy2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdcA/0UaRKJbNCsVnq9rWTdsfHveqyJqWdZbqKmgQN4gIhAI9r4i87PHDQxeU82zC8cOY6uCzTeCXgUQYhr1UDiMEJ"}]},"_npmUser":{"name":"srhodes-bmt","email":"srhodes@bmt.world"},"directories":{},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch_1.0.2_1638817211332_0.38683124621937504"},"_hasShrinkwrap":false},"1.0.3":{"private":false,"dependencies":{"passport-oauth2":"^1.4.0"},"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^16.11.1","@types/passport-oauth2":"^1.4.11","@typescript-eslint/eslint-plugin":"^5.4.0","eslint":"^8.2.0","eslint-config-recommended":"^4.1.0","eslint-plugin-eslint-comments":"^3.2.0","jest":"^27.3.1","passport":"^0.5.0","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typedoc":"^0.22.9","typedoc-plugin-markdown":"^3.11.6","typescript":"^4.4.4"},"keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"main":"./dist/cjs/index.js","name":"@hewmen/passport-twitch","scripts":{"build":"tsc --p ./tsconfig.build.json","format":"prettier --write \"**/*.{js,json,md,ts}\"","prepare":"npm run build","test":"jest","lint":"eslint ./src","docs":"typedoc --out ./docs ./src/index.ts","example":"ts-node ./example/index.ts"},"types":"./dist/cjs/index.d.ts","version":"1.0.3","license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"5955a9e93dc825449ea52a9470a1d26476451b95","bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"homepage":"https://github.com/hewmen/passport-twitch#readme","_id":"@hewmen/passport-twitch@1.0.3","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-mnxrG6JFnx7It0gF1TojQHXmcwxnJCCpxuPrBAb+YpHzRx/Z/zOYysQYTRyR0jt3d0Hjrf4255U0n4gq3fvOCQ==","shasum":"96e61cdb9758b3ff2442946077d462871ae4831c","tarball":"https://registry.npmjs.org/@hewmen/passport-twitch/-/passport-twitch-1.0.3.tgz","fileCount":12,"unpackedSize":55805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrl4uCRA9TVsSAnZWagAAhp0P/2PjocVdC4FIxHwxWtyf\nNF+gG+nzGUip172+yGNFaSe4May4yzi7KTLKif1pzj5bQFacujE0Rih0N/J0\nmrhYJyuXnE5Pzr6vPD+5nCrAY/mv84Ngx6cLmZBDvgTV0fnlnRH7rFxQiEI4\nD5cVeQvNND4b1nFKj1OvgeQP7J0tB0bpmUkWFmc0eIg6FlfnjhSAZmnuOv0v\nlDyQXDZBNpp/eJM7ss9i/q3rS6DFLjo8JBRuF11MVDZDX6XIQuJSxuAljz/A\nefykRX2IF1PkZ7UKg4w37WuCVPoifHX5h6iYlyWbhpt9aPGl6Q3LGi0LsEPO\nDWQ1eTGJsWdlcxTLBc+h7rbgFmWkc8JGn+p/83wRGpYM7roXsMBlJMbLtYAw\nZjCdtXpEfAysVYK1qGuDPibru0sd7a3DS8MMA6zKimyGlIEwkf9Pk4BCiKFD\npVdKZWAYqPTJrAtfuuJSmon8PfWIBFpsFexhbN0cdVO7NdIaRJDHDKNDt2AP\nI5TlLm/UXe6iyJbpXQxDdbUIjZE/7Q+03yvqdhJxAKx0v89Dewmh3m8LuMh7\navz6PyX8L5TiA9jANH4zXQC/q0HZVZeuBuliK7QRuKjke0jzNvwlIv3ATe/B\nFOogHHnfavD99iiwNygkSCaeIWynVW1sod75Mgg5rSRwR/MJHIuzNK7xEdZY\n+Bls\r\n=gZjG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaiB1n17KBp3KlIvPWM/+IeHqPjhSKJLrxWN6qaYzReAiAnmPfYM8TDF2a7VfG2hpTMA1qJeOEoefDkvVbhDN1qUw=="}]},"_npmUser":{"name":"srhodes-bmt","email":"srhodes@bmt.world"},"directories":{},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch_1.0.3_1638817325861_0.3803784371828023"},"_hasShrinkwrap":false},"1.0.4":{"private":false,"dependencies":{"passport-oauth2":"^1.4.0"},"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^16.11.1","@types/passport-oauth2":"^1.4.11","@typescript-eslint/eslint-plugin":"^5.4.0","eslint":"^8.2.0","eslint-config-recommended":"^4.1.0","eslint-plugin-eslint-comments":"^3.2.0","jest":"^27.3.1","passport":"^0.5.0","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-node":"^10.4.0","typedoc":"^0.22.9","typedoc-plugin-markdown":"^3.11.6","typescript":"^4.4.4"},"keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"main":"./dist/cjs/index.js","name":"@hewmen/passport-twitch","scripts":{"build":"tsc --p ./tsconfig.build.json","format":"prettier --write \"**/*.{js,json,md,ts}\"","prepare":"npm run build","test":"jest","lint":"eslint ./src","docs":"typedoc --out ./docs ./src/index.ts","example":"ts-node ./example/index.ts"},"types":"./dist/cjs/index.d.ts","version":"1.0.4","license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"gitHead":"5955a9e93dc825449ea52a9470a1d26476451b95","bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"homepage":"https://github.com/hewmen/passport-twitch#readme","_id":"@hewmen/passport-twitch@1.0.4","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-7tKrOHRnszfzm+351uj+PCZfqk+jXMuYcb+NMet0UszEO8b8mi0UQcV96ZtR0Eo7a5r03YzOjgYDUvovQqISNg==","shasum":"f742575687c0f3db54efa0c33697a0e8897c2d69","tarball":"https://registry.npmjs.org/@hewmen/passport-twitch/-/passport-twitch-1.0.4.tgz","fileCount":12,"unpackedSize":57580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhro/1CRA9TVsSAnZWagAAVl8P/1rPBKrKLyHpPmcRNGVD\nXZxeqNUsBZLpyvoJCIphgT3L/FO5ObntB2/duCKkGnoT2tYaUz5WNqkkGqUS\nh78r+cS9wNv1dxGkDcsLexyVJmEeLNuUxA2pjpKRVo3as4IY8SIuPXk3Nee0\nkWbDMYlvYo+5yG15lV83sBIbpKIzJE7iUCV/3w8Y+nPX27rtM3Y3OfO6qSVP\ndLWGrZwRTQ12zs8Zy/8+dPfv8K7oHZhfrRqrWYgGP7LeBnVM79X+5W6VY/iS\niy2KNtR/9f44tkJ/Sk3bdSNw5GUQTpEsshCoItW9hupZHj7uazGeA4fHH5qw\nQVaoRYR1/ijQw9nIZt8OYYVFFz/uHTTWTa03LFa9qqh2KbfEg++lJpXggljl\nl+kfOQFcUbuFf8FfpuHFKq8TUidVlOiOxBBii6yrF8R8IN8SvX0IbbQFaI6p\nhhWaGmJYQ8BHLwnlBlXNpKc3ZOsnXUvsWBXeOnNNQ40C1t1K6kOi7d1sx3+M\nESYNW8S7VzB9eFz/bAcZcgUHeNHo9X/ah/WpT76a/NRU/PQQ3S3W+6a6e2Es\na+DFMbAWwE39SXxmbMKb2i0q6o3jJ1Gbvs6M0O+VJL7i8OCsN9hPn2A+CbIr\n7aEiPfSxLhtvTjJSkkQmFOHSzx/1ssNvrCqwHC1dyCDllrBht7DB1pMuyBoE\neNyx\r\n=Tzyr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDesKqxJRiPye1dwMC07hrhBcKagw8BmutyqYKzJkO8gIgcntkhYKYHdThvBCb5o9x9sUvZz54L5+EYQWDMVBpW0E="}]},"_npmUser":{"name":"srhodes-bmt","email":"srhodes@bmt.world"},"directories":{},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch_1.0.4_1638830069753_0.21224774510613997"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-02T00:54:56.224Z","1.0.0":"2021-12-02T00:54:56.489Z","modified":"2022-04-05T17:34:50.008Z","1.0.1":"2021-12-06T18:50:32.085Z","1.0.2":"2021-12-06T19:00:11.525Z","1.0.3":"2021-12-06T19:02:06.055Z","1.0.4":"2021-12-06T22:34:29.922Z"},"maintainers":[{"name":"srhodes-bmt","email":"srhodes@bmt.world"},{"name":"balancedmt","email":"accounts@bmt.world"},{"name":"johnycilohokla","email":"johnycilohokla@gmail.com"},{"name":"ghostfromtexas","email":"ghostfromtexas@gmail.com"}],"description":"Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!","homepage":"https://github.com/hewmen/passport-twitch#readme","keywords":["passport","new","twitch","auth","authn","authentication","identity","oauth","oauth2","strategy","helix","webpack"],"repository":{"type":"git","url":"git://github.com/hewmen/passport-twitch.git"},"author":{"name":"Hewmen","email":"development@hewmen.io"},"bugs":{"url":"https://github.com/hewmen/passport-twitch/issues"},"license":"MIT","readme":"<h1 align=\"center\">Passport Twitch 🔐</h1>\n<p>\n  <img alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000\" />\n  <img src=\"https://img.shields.io/badge/node-%3E%3D10-blue.svg\" />\n  <a href=\"#\" target=\"_blank\">\n    <img alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" />\n  </a>\n</p>\n\n#### This package fixes Webpack dependency bundling and unable to find the package.json file and adds 📘 TYPES\n\n> Twitch authentication strategy using Helix for Passport. Supports the April 2020 Twitch changes!\n\nTwitch is a trademark or registered trademark of Twitch Interactive, Inc. in the U.S. and/or other countries. \"passport-twitch\" is not operated by, sponsored by, or affiliated with Twitch Interactive, Inc. in any way.\n\n[Passport](http://passportjs.org/) strategy for authenticating with [Twitch](http://www.twitch.tv/)\nusing OAuth 2.0 on Helix (the New Twitch API).\n\nThis module lets you authenticate using Twitch in your Node.js applications.\nBy plugging into Passport, Twitch authentication can be easily and\nunobtrusively integrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/) style middleware, including\n[Express](http://expressjs.com/) and [Koa](http://koajs.com/).\n\n## Prerequisites\n\n- node >=10\n\n## Install\n\n```sh\nyarn install @hewmen/passport-twitch\n```\n\n## Example\n\nThe Twitch OAuth 2.0 authentication strategy authenticates users using a Twitch\naccount and OAuth 2.0 tokens. The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a client ID, client secret, and callback URL.\n\n\n### Configure Strategy\n```typescript\nimport passport from \"passport\";\nimport { Strategy as TwitchStrategy, Scope } from \"@hewmen/passport-twitch\";\n\nconst onStrategyCallback = (accessToken: string, refreshToken: string, profile: T, done: (err: Error | null, user?: UserType) => void) => {\n    User.findOrCreate({twitchId: profile.id}, (err, user) => {\n        done(err, user);\n    })\n}\n\nconst myStrategy = new TwitchStrategy({\n    clientID: \"twitch_client_id\",\n    clientSecret: \"twitch_client_secret\",\n    callbackURL: \"http://localhost:3000/auth/twitch/callback\",\n    scope: [Scope.UserReadEmail]\n}, onStrategyCallback);\n\npassport.use(myStrategy);\n```\n\n### Authenticate Requests\nUse `passport.authenticate()`, specifying the `\"twitch\"` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n```typescript\nimport express from \"express\";\n\nconst app = express();\n\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\"));\napp.get(\"/auth/twitch/callback\", passport.authenticate(\"twitch\", { failureRedirect: \"/\" }), (req, res) => {\n    res.redirect(\"/\");\n});\n```\n\nOptionally, the `forceVerify` option can be set to `true` to indicate\nthat the user should be re-prompted for authorization:\n```typescript\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\", {forceVerify: true}));\n```\n\n### Complete Example:\n\n```typescript\nimport express from \"express\";\nimport bodyParser from \"body-parser\";\nimport cookieSession from \"cookie-session\";\nimport passport from \"passport\";\nimport { Strategy as TwitchStrategy, Scope } from \"@hewmen/passport-twitch\";\n\nconst app = express();\n\napp.set(\"views\", \"./views\");\napp.set(\"view engine\", \"ejs\");\n\n// Middlewares\napp.use(bodyParser.urlencoded({ extended: true }));\napp.use(cookieParser());\napp.use(cookieSession({secret:\"somesecrettokenhere\"}));\napp.use(passport.initialize());\napp.use(express.static(\"./public\"));\n\npassport.use(new TwitchStrategy({\n    clientID: \"098f6bcd4621d373cade4e832627b4f6\",\n    clientSecret: \"4eb20288afaed97e82bde371260db8d8\",\n    callbackURL: \"http://localhost:3000/auth/twitch/callback\",\n    scope: [Scope.UserReadEmail]\n  },\n  (accessToken, refreshToken, profile, done) => {\n    // Suppose we are using mongo..\n    User.findOrCreate({ twitchId: profile.id }, function (err, user) {\n      done(err, user);\n    });\n  }\n));\n\npassport.serializeUser((user, done) => {\n    done(null, user);\n});\n\npassport.deserializeUser((user, done) => {\n    done(null, user);\n});\n\napp.get(\"/\", (req, res) => {\n    res.render(\"index\");\n});\n\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\"));\napp.get(\"/auth/twitch/callback\", passport.authenticate(\"twitch\", { failureRedirect: \"/\" }), (req, res) => {\n    // Successful authentication, redirect home.\n    res.redirect(\"/\");\n});\n\napp.listen(3000);\n```\n\n## Author\n\n👤 **Hewmen**\n\n* Website: https://hewmen.com\n* Github: [@hewmen](https://github.com/hewmen)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","readmeFilename":"README.md"}