{"_id":"passport-twitch-strategy","_rev":"17-601510ea5d2562036976eaeff07effdb","time":{"1.0.0":"2020-09-13T22:16:51.605Z","created":"2020-09-15T10:30:08.951Z","1.0.1":"2020-09-15T10:30:09.127Z","modified":"2022-05-12T16:01:34.318Z","1.0.2":"2020-09-15T22:15:20.069Z","1.1.0":"2020-09-17T14:08:08.284Z","1.1.1":"2020-09-17T14:47:23.079Z","2.0.0":"2020-09-17T15:21:32.893Z","2.0.1":"2020-12-07T22:04:56.923Z","2.0.2":"2020-12-07T22:08:19.877Z","2.0.3":"2020-12-07T22:09:42.819Z","2.1.0":"2020-12-15T21:38:58.732Z","2.1.1":"2020-12-15T21:40:05.020Z","2.1.2":"2020-12-15T22:28:33.267Z","2.2.0":"2021-01-07T23:32:18.068Z"},"name":"passport-twitch-strategy","dist-tags":{"latest":"2.2.0"},"versions":{"1.0.1":{"name":"passport-twitch-strategy","version":"1.0.1","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"build":"rollup -c"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0","pkginfo":"^0.4.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","@types/node":"^14.10.1","@types/node-fetch":"^2.5.7","rollup":"^2.26.11","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","tslib":"^2.0.1","typescript":"^4.0.2"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"b7e4c6fac79c3ab7001ec24a1e824b55e53879ab","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-L+ZBAYQVkzJgvtutUF70Ku5WWOEDikiz8Lws5YcWHsvP3ZImnptGjZzhGKtvmNO1Ms1Mr0f0RmWHvChkfjQxmw==","shasum":"dd6fbbd93b9b921b8eed725660e3ce39d4cd2a37","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-1.0.1.tgz","fileCount":14,"unpackedSize":23082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYJexCRA9TVsSAnZWagAA5hQP/3tAG3f7dQbgSqIfcNwG\nWmxDENBKU560EfblwvyLA8hVMg4hcvyBz1RD1rOcqbusFNE3d/5u+SL9LU5o\nVWrImEwOukBIzFqIG5hCX/OonITP18Q4phlTTpW9TWToilcD+l8mTKap6hPW\nqa3ICMbX0P4bxzWPOAlhXM7mQ70qXXcc/lYKv7rHljMjG3OLmD49QU8L1dw7\nXNCm16J63YRH5ndeoXzR2O+rVSEYwsRJtKYrZdXKLxmfWUs1sTevvGgFrZsn\ncPiwjkdRG0X5+24oDjDmGJLvmlwWWdfiZQNuxHJJbuOgtvCxMlRbIaeSVomb\nfn18hPCrfC+YbsgDhkGIJCIwGgBs/ccyhSzbq4c2jG3EJa9Md1mSCA7EO97N\ndQoLT79s7//Ac6/NCr0JaF5JIFveqko4KShapKd/7lWJpwrHNpdAllVZO9pU\nQMqNTB+wGdeuPEHeQGaxSWT6hnmybGUeWVa9Kc4+fl/bw2U5/9DNi+E1BxCw\nKRMKIkfAiO0oE4IYMa62FOWJuU4++kHzLyT8mcgDJvwKGlGX9KJgcDDOH4OJ\nafHz+98FI4sV3OmMmCg6Xxa8FTqgroxWzTE0ZFDQPQME5TrxGv7erS30DyoA\n8osQz5xWJBJgLYyh7YZS6HVboSAoFvfXS1kshi9oMvLgwNjMX1/vdMPVhieO\ncSoo\r\n=bMIk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7gGsa93ZHSxTziTqdMQafhzmYBYgvuU5Dd4Z63gqfdAiA2mSM53Jm4NDd2gRY/8kHw3OEGRBvmAk59Ro5RfB3KTg=="}]},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_1.0.1_1600165808951_0.5551226947474919"},"_hasShrinkwrap":false},"2.0.0":{"name":"passport-twitch-strategy","version":"2.0.0","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"build":"rollup -c","test":"ts-node test/index.ts"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0","pkginfo":"^0.4.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","@types/node":"^14.10.3","@types/node-fetch":"^2.5.7","@types/express":"^4.17.8","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.27.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","tslib":"^2.0.1","typescript":"^4.0.2","ts-node":"^9.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"04b2d394b0bbaee0f9ca22b3091888782fcd9f7f","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.0.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-juOi6XwUwVMPzEz71F08/ZjsFXC+NWKM7maBeJ3eAatujjK584WjDqWRDcHXI6nQyOzXQDwkAo4RfGfWubV00Q==","shasum":"564f94f4982a362cb9ba1566b227adacb53bf5fc","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.0.0.tgz","fileCount":15,"unpackedSize":27857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY379CRA9TVsSAnZWagAAHnEP/2Bp59vVK8ZpaHlZPW37\nKtuxy2bAWOp8kW7+LLyqLt+DHTfOS1hATFqxJB3tkdJRO6unEJvEGw3Av8d1\nK1aF2NjD83m7ZHj7fLTM5A7YW9qtiMhGghRYAOu1kyqZJOIjJ+wASjGFS3Hx\ny8NJS6kHB+93VFTfzNB9Brk1FH8zptwFJHP5ZsJVN8OoVR0K5oBXOUk/HqQh\nC069CRHX8jWsLOHVQ2Q79m0R580i/OZkO+0JjA0Zbox6Tna5o8Gcl8xQH9gG\nn1zJgK2fnf5Zf4S7nHfxdnlOROD/ORiBZuGG/45yzceYctkkr2tXo/03dirY\nX+njlMwsA7O+FgkkbCVtf4RvPQBC7pVGYFnUm++oEihVT3OqKbNJoCObZtUj\nbGqlEWWhNcpy2cQKeQavmmFF19BscK5J9e3B2EeWK77xBifSHApB0S3PTx+B\nvRV8666ai7OrY8sL2n6LiDU6Ps4K5gwsUEAdN1fwVVCBU3VBdz0er2uHFYMk\ny+IEf73Za3q7jzx7ZucjuSKHeD038cKIpFtkHEuWE/YhB1a4utB5qDvK/nrO\nrRO7f0cbjinM2m3xHdXYQ9XxiuEHQQUP7TX4mavvc5oq0RjulnONfs2nHSro\nzHs+Je5ZMlNypRU5KcyRvJDkygHBPEHLI4G0Ar/n61sdcJ3W37ELtEEQUb9a\nH5Sd\r\n=eGiO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgosF1tsx0Itkz0SUPKozpdeoP6tAvMVZnkg0H4GWumwIgekG8zX9hVPTLo+JVQWakt45P92nLxh2vyuNFVOW5rKI="}]},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.0.0_1600356092792_0.1807911617739426"},"_hasShrinkwrap":false},"2.0.1":{"name":"passport-twitch-strategy","version":"2.0.1","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"postinstall":"rollup -c","test":"ts-node test/index.ts"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0","pkginfo":"^0.4.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","@types/node":"^14.10.3","@types/node-fetch":"^2.5.7","@types/express":"^4.17.8","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.27.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","tslib":"^2.0.1","typescript":"^4.0.2","ts-node":"^9.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"918894488ee95a7900a3ad42b41103538f3fddb0","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.0.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LbFcZWgrAjxMZd4jNjxAi/68xBaWG72zlncvmMVbsBPZl1WJDZkmVGg/6rFvSSwzexAf7JWdUQycRmHbt7j6Fw==","shasum":"2a05a063bd367a5b8e1be9405a4df5eb8a7bdfd6","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.0.1.tgz","fileCount":11,"unpackedSize":19512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzqcJCRA9TVsSAnZWagAAn0cP/RM2UfGe7IpLHC/eieDF\nSStvv0nQX2IR0bu6sj6ofX52cC+WVN5qdeS91Y8ljd7mhebD8NZ/wrczdqYN\n39m/PgrZ0bZHpEBgpv+UogT0b6tG6sEN32RrIRaJ/C0hvIBsthGFyVrAg3Me\nBatieXsjADSr+vh/w0P0XVRuUmqexg3aH3RCf+wZNR4wfEjQVqlBp4J/StPu\ncVD87i21XYQwhcmeTvvtEDXu7KZFcs1/L8AOb6EMqEJWARh+bJ2UYbYLgeX8\nJdpvYIgw2QNOU5aWPFg09Q/Svbnh1ci7kfl3qSzlO2KaeaJzNwBuPaxCh2BW\nL+9/Ql/inhFZp15Llvqh7UzHT/hyxmebI8CiLPaeHCmE1M1+G1c1aAZUBvnX\niRpbZoCh6bEXSAVYayRUsV0L51aIcGL7aYBCXpEd2ze4RAwDel8McBDVO8nG\nj+o2CG/99cI8F1cX/6OAhZpWAO3kS+Ac3CBbVNzH7f9i4a2+gtwHDPj1mDmt\n/2B6vpIsEs0ZYrlOvbfXnDSqn/1XrS6nT5uL7dQl0BXaja1xyheqC+YsdS4q\n/SRvkbaU0fgfo1Ji0i2n2eAGsNKDZLMW14RWsHuG+ayJRvFurLmzEVMOMqkW\nWEphlypXd379XOmtUvqkI1M0mhXgPMfyVkajYTa9w+HooSYp4gQOlUyN5ZT1\nBpeG\r\n=zNyF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAECWWFUW08YZlo0T6WXO/160Iik7oHhrGYGMnj85tsiAiEAmyppH1LrYkxdSCHVi9ngtY6sHJX9D/N9qkA+6ThU3Gg="}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.0.1_1607378696754_0.936680873053604"},"_hasShrinkwrap":false},"2.0.2":{"name":"passport-twitch-strategy","version":"2.0.2","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c","test":"ts-node test/index.ts"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0","pkginfo":"^0.4.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","@types/node":"^14.10.3","@types/node-fetch":"^2.5.7","@types/express":"^4.17.8","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.27.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","tslib":"^2.0.1","typescript":"^4.0.2","ts-node":"^9.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"caf33c3a1594b125d098d8df6af13839284374f7","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.0.2","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QVzRuNkKszqLjEW70SNeWFGn0u+7JoDNI9dxMkJt5lRi9VHWhxHlCtwcaN+KH56J3xHBMet013zq6oop3NlAeg==","shasum":"6b1db90a5a03898394d97bb23401040520d03149","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.0.2.tgz","fileCount":11,"unpackedSize":19515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzqfUCRA9TVsSAnZWagAA+j0P/38O11xxJhRCvOVb1qBj\nS3v9b5VP98Go+uYSs7Z9hoZuparbgarZRRkAtaRomN7jPQchBJPCpuPsAjhQ\nwrogf/3voveRjMuY5mzzQ/T3wZKTXZOn4mHYfTpbsiU3J5MoXgFXNshFh2JN\nW34YEnNEyLkWuvxsMUFHiXODF14uGPtNNvJsbMOhii4aPBSTnDhbAGTI4ldP\nTZumISukiew3siTvkV1+yJcpFI9Gp8wpQD0WGXTpqPoAU0iXPF5f1tE7Rz4M\nDR4+g8kewpnfmxFtSemlc0jGosAqwVSqs0tdbqldLZtL+hpdNCFiv3PyILc/\naE9OiYElVsRr+y0DZEnnGWpeAyNEQtLk0MZ6Pob1ajw9Pnsdmo7I6La1QYfQ\nGeRCAabUpOnWX2Z6oEnc3WM3Y4tqW2vgIICzGv2GopsymeakWaGuNTotx6Az\nbxpbsQkTc+0P4L5L01dRG4nnY4rveLqYUpX/6vUls+K0zYA8jPPjccDerQ4P\nYBJzfiWsdv5RcG4jVHB24jJP+BEVw5+b4l3fsdjWFgZpBi7483oCrIAVKJx7\nHSa8r0ADYTtoOLIV7z4xn8NOdG3lAz9AORMmh6EzAtXw6OJTFK9/cfKCSA07\nqKWjv3Q9KR4ys/m0FbmhNrTcQ2C1+bUbaBeLhMsUx3bwUrgXSjmoOdV19vQ1\nbnxN\r\n=asLr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoHFtb8IQnC6lHyszUB8q15U1ujuzKwvIcuFA1ptes+AiBKQltct9svUmCBBBEneJ+n8MsyWhGItUoneFEDULNayA=="}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.0.2_1607378899482_0.29049314432868645"},"_hasShrinkwrap":false},"2.0.3":{"name":"passport-twitch-strategy","version":"2.0.3","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c","test":"ts-node test/index.ts"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0","pkginfo":"^0.4.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","@types/node":"^14.10.3","@types/node-fetch":"^2.5.7","@types/express":"^4.17.8","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.27.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","tslib":"^2.0.1","typescript":"^4.0.2","ts-node":"^9.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"95184a9cf8a6a0a8853139c1217a4a31bda7f8cf","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.0.3","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iljRO+mrXS+bDBWNPZwgxpH+aC+s5UApTJgyeCprwb15cvQLxK/GnRH4L0wJvIBkMkAAbfTAtf5RtHhnul8hVw==","shasum":"4e3c1754fd92225a64f7903841dd78ffea9d019b","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.0.3.tgz","fileCount":15,"unpackedSize":29246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzqgnCRA9TVsSAnZWagAATM8QAIi48WwW+fR9m0sixJMf\nFREzYaOXcsP7mT70xbJr7nwW17t4u9f74CFHI3DSpMbtEOFX4TctWTpDQVOq\n2roFRyvKTXNoA/jj9EUIUG8+ov2X+1TPzIG2R3OH+qUiO0t0hdySm4kSFp6v\nsW7mHtb8jRi3Xgi2BQPxyYievgDEs5kH2NezSlXU8cgJz0lXF2jcZ5YawHc/\nPdpL6oG1fzhvOY26VGQE/UJk8qi78AVEZtU620z7OBEYxX4jOyRIhOh6XScZ\nswrg+iABdWm9ZrsLsEQCj/7RHh5XeBmYu4aYBttoN6k8Pr15klied/PqyU7n\nGHSMklPtbrXAkhIjwaXck97ddo8IiiksHyqKAVBe7gt7EVLyumuyChS4r1u/\nIZ30P8CkCiMvpn2z61dNOc2LF/BzPRdGfkaS2SIaovA1HnWGwNbTDUZKNWPj\nk72zJVE85o6zzMN3p+GxMSV3BNJzPleqpNJxv3MCUkap5A7t4qRA2ab7Oknl\nwsgEPFnXz2ogNegyAVeE2Sr3XP3LQzj7pMNFHfddoIkLu/2z0mn8n/7l6TPU\n1wImSkTBi+cPQ4VG0rYU55D5zGlbG+uZSvTHX/QqAnLddT3LxEMo4VYaeJWP\npUt+mTAkuFWNRRIwiA58ra72GpTeL6Wbsi0O8A7UOfjcqtQx0JIe5Gq4Fef7\nwwrB\r\n=9We4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCypLzk/dfKQG9BektEgKsE89sO3GXosqw2n/Ltcn6X8QIhAJIkm12/5Q+3fujGgtGqPl2gSdnDS+K1sAgW9LlG7Dda"}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.0.3_1607378982706_0.16729716921394022"},"_hasShrinkwrap":false},"2.1.0":{"name":"passport-twitch-strategy","version":"2.1.0","exports":"./dist/modern.js","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"https://github.com/d-relay/passport-twitch-strategy"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0"},"devDependencies":{"@rollup/plugin-node-resolve":"^11.0.1","@types/node":"^14.14.14","@types/node-fetch":"^2.5.7","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.35.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","tslib":"^2.0.3","typescript":"^4.1.3","ts-node":"^9.1.1"},"publishConfig":{"registry":"https://registry.npmjs.org"},"license":"MIT","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2020 x_ror\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"passport-twitch-strategy@2.1.0","dist":{"shasum":"661076a6d693e011874eb4b00281536fea450eba","integrity":"sha512-5cE/tjX3ycqnSfIa3UnQ7gNxokEn5GYzhxWtpEFIKaqpRcbR8wemSPnVZQTukSNJeyP+9QFAINqnaL+72rOjGw==","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.1.0.tgz","fileCount":23,"unpackedSize":35335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2SzzCRA9TVsSAnZWagAAwcMP/RLTA79rzn/c8/4qhaDq\nTouB0EFbAA3tGlO405uezMYpYmoDBZagYQGa8cGuUW5OTbLgCRmGsKaI0NFc\ns3AqryD6wB/O2vJKgCtHyJLZg57SEi948LC4eYn1LEH9C0AXwPk5pfVrQWlP\nAunQBJYZFcpIstPrmdRLhr40CdLy8XnwEsF4q2O6JdQRSXOabjDcGtnrC6ea\nzDOYoeo/DrdKQv1zn0CnIPNsZAoR0+YO/qZ8Qzml9SM8NDrQwM8gaPsf8KZy\np6Vz7LArYdSbCXGnIa+gQ+uEcdWZ1shQrV2EtjGDIhOToF7GItHI9rI1o/fp\n1gi9vI+BWyCz81AMSIeHTKBh0YMXBoCe2r9D+/7z4ylF+v2n+RYNyJ0CZNoI\nmWR2bcbl4Jax5WXiNeGyiBAHzpe2VxzMKG5ZsxaJ77SIUoLXXVIab5wHOSNU\nEZVgWflZu1ADy9+/VRZ6pITTg5RGSL3+z5KHNDLPeHijobKBWIZL9mX5h8v5\n9vvaoAWu2llVIGFdzngtrTLBNGtCLxpdcYvSyPyHfFRWnqe4qu3Lb2ammoCA\nAVR878ozJjzvTIHgcmnHca5GPHvhb6slNSup7LmXBOkfp371TBBmNxJWixpP\nZn/WmKnNx5p62wPKdC1nB/5E/llpgCISkML8QMGiSWLq6N89cMVWmsiBjHn/\nGVeQ\r\n=DEd+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZBo7TMprKXYgz7EN8OaY8QJYL2fQ3gxU5es6C+b1fmAIhAN6xxsz7Ex0f1NdNy6MnapdNSf1KdF4oc+BaBL59EO9q"}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.1.0_1608068338532_0.9879885625210212"},"_hasShrinkwrap":false},"2.1.1":{"name":"passport-twitch-strategy","version":"2.1.1","exports":"./dist/modern.js","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0"},"devDependencies":{"@rollup/plugin-node-resolve":"^11.0.1","@types/node":"^14.14.14","@types/node-fetch":"^2.5.7","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.35.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","tslib":"^2.0.3","typescript":"^4.1.3","ts-node":"^9.1.1"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"52c46c8ad2a77f6c4c4c4636a65c8bbf0bd27b97","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.1.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-g0f8O16qMiWbkb+DuUjOt2HbKZu9WgOke6rGgC3pmOokzNOx5tneLR0PwNJ+4KkLcdTEErmdxoJ+EDrP2WoQJg==","shasum":"3680f5600d6a009ccfe537ac1f4b90705ac90635","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.1.1.tgz","fileCount":16,"unpackedSize":35335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2S01CRA9TVsSAnZWagAATUIP/R4hu9WzL23DoOgjvOsV\nF4T763bsoPIMLGzUOQWqBoRxcflU/CB8wnItzdbT3/Czsw6ATFNLtCbR4KHc\novqhABomI4oo3IMqrL9yiNwDf/PabPUsoPyjuYG5atrfALKweDESlnXhf8Ut\nL4syYRSOKAbSBROH8gYkIvH0EtusmAofKRFgWFuy08qXzCzc6tuZLUofXTJb\nrCHHEqRYN6bVZDaB73B6KWkv/OtVVQlgpnJo4979egJ1JriD5iBElBn8V5Bf\nxXOXyG0aWTa5cWNRqzo4K8ngKu/jK+AHiCzlhSvktmrQq95+8O2Nyppi3H2X\nHknWqb6ZLGomCqn0sxSRJZdgdI9q2OsQV4Glc6oYtD3PH0YnsnKU8pygwvk3\nNzYwbQA7KBt+AIWxya3UVxs7HUyHT4NwRiFmiBHLLYBJGycIxKUL6nvIkC++\n4hRxhShHzAn53q5YIyFC+TxKKq4JRJCQUQINaNLfB98tF1sxY84Hq9QXmTy8\nSp7rKVhzxLPXT333JhBnwVryLd6QljI8agnb+vj4ZdxGk9cH5WSXtAmdnSP0\nxnTLMJs6kM+3E5W/XcPNALqnj6M2dL4ad3P7v7pY/yGBZ+VOXy8WKnbEQnAE\nKslbeGW8K4Rgx4FdbR+5GJIgfCD7hycLVao2pBvJDYNbcNGzWkZVzZpGllW6\n610N\r\n=ySpw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoQqFEas+nhB/9/SJ2AWpPUHDtk0CFJRg4h87XBo5cnAIgGCaLja55n/OgYSVAYD6qXqLckG95rajh1ZLISI+5FrA="}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.1.1_1608068404874_0.10762785495447758"},"_hasShrinkwrap":false},"2.1.2":{"name":"passport-twitch-strategy","version":"2.1.2","main":"./dist/index.cjs","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0"},"devDependencies":{"@rollup/plugin-node-resolve":"^11.0.1","@types/node":"^14.14.14","@types/node-fetch":"^2.5.7","@types/oauth":"^0.9.1","@types/passport":"^1.0.4","rollup":"^2.35.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","tslib":"^2.0.3","typescript":"^4.1.3","ts-node":"^9.1.1"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"5dcf2adc093b6b465dceb79d386d7b6d8beb5d17","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.1.2","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yjCVHKJk6a/gu256RTm6ZFFy9+pfjwic6AOSRBsun5Z7xUrgvNkuytdpQtcU2wqEXzbCpwgWSSeOVaqrFrnJVQ==","shasum":"1f2683faa7c0d743f57c5bf19e52c5861713de9e","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.1.2.tgz","fileCount":14,"unpackedSize":28462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2TiRCRA9TVsSAnZWagAA5IwP/2PJsIud43BY24Ggo5vx\nUJIyQqiXOpsX3Fd7gk8AXxMna7BDdVvKXJN3zAyWN0URx4EvCqd1R5KtfsXv\nwDv5sHpFjJ+ShJAzIZa1GjxW6HsjkWwM0n3MffKAEGoz0lu90hwPe9SrCVAr\nXXZsPttbvMQSfBC+4D7ce/02BdvADdrIAMm4xr0eajOdRzTaIDJJe4xR0Nb5\npGR78W14yrxcjw+6Kq6yCgHLBMcaJE2vA76lGDJQTNKsAzNx5+4zJMCNK/iF\nkx5bCa520SsiuJRGAetnL569yA+Lgs7yTEKG9w1LFe1xkqpTi2rr4mJ1j50v\n+bzvq31pkNkNcAwYbDhauCcBSKachirKSL58CvOWKdz2ZVEdKpQtgFQoBifY\nE8nVVjAXOgTsNjVgaeG/Dc4YAAAI8fSsBOVzDcn/QngK+H677Dr2CGlnkDbS\ntb8xGirblr4kFQgYvuD0BCqDHFsJaMG/EbkAKJimzEO0aSaPAPsElfWVYhkJ\nwWohbOPRrBsx+zHzCLpJ/aRwCz02uLSl3q6VEdQG/gn91OHeX7TqzkpkirZM\n3bqfqT6ft56PD8cuxyNz1CwZMCawJCXiKQGgBzi4pzOoL9f7Gk2MIGF8/nui\ng+vUeLKjxvDv4V6xyiHOzxl5+HUvPKwd4zW8/9pkLM1TNWj796TWdMdjyYhS\nrlG4\r\n=O/S3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7OFga8fUnfA36QJdKJk0D4cV/PFFdIGbPtDe2CMjvgQIhAKGUUwidHU8Ru2sKuskT+d5DPw+5ehECSM4a2arpSc/2"}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.1.2_1608071313110_0.7302581876893164"},"_hasShrinkwrap":false},"2.2.0":{"name":"passport-twitch-strategy","version":"2.2.0","main":"./dist/index.js","description":"Twitch (OAuth) authentication strategies for Passport. v5","scripts":{"prepublishOnly":"rollup -c"},"keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{"node-fetch":"^2.6.1","passport-oauth2":"^1.5.0"},"devDependencies":{"@rollup/plugin-node-resolve":"^11.0.1","@types/node":"^14.14.20","@types/node-fetch":"^2.5.7","@types/oauth":"^0.9.1","@types/passport":"^1.0.5","rollup":"^2.36.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-node":"^9.1.1","tslib":"^2.1.0","typescript":"^4.1.3"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"5dcf2adc093b6b465dceb79d386d7b6d8beb5d17","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme","_id":"passport-twitch-strategy@2.2.0","_nodeVersion":"15.5.0","_npmVersion":"7.3.0","dist":{"integrity":"sha512-PjESpFVnJk6GIX2EOtkuyk01K81ACDG8IiLJu6yOtOyaMti24/afMtqBcqDrsKqz0RHrx206AfWcI6Q4Tvy4OQ==","shasum":"8a9d78ef478de92d1164fa8d194ee76ff551e0f1","tarball":"https://registry.npmjs.org/passport-twitch-strategy/-/passport-twitch-strategy-2.2.0.tgz","fileCount":14,"unpackedSize":28457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf95oCCRA9TVsSAnZWagAAqlUP/Rup4uWBG7nLj2XyaHvH\nDoIa/kpQg3rbUJM2VRo7X/+o4fi2rfp5iBRggw3wQlnA47tdig4aQXvCCJx0\nyfdPPvvcJCo4VGRNY5f/GiTdbZetJgAJxxhIqcoicjM3DhcHor16ZuVlYtut\nsSe7HtIBCYcjvuNkmwmmsLEgdtnKjqFhg99SAkof4r9KnIP8H0wErk2BguM/\n2lkxTUKrXnh2Y+d416uSgNed5RgD2uL3rZlbGSYnGiUTq3YmTvH6+8KlVKUw\ne3V3wSZx3/hs5xYpTt//VYMa6dtovokIBu49ajJOKaGbzpakt7aw5Wmfb0aR\nR1QsEyYJTOVtrSDsSiaX7Ci5bvtmn8eWf4BH+ScIl1i+fUWsJvAlFjnPVBS0\nnBECCwLnDjKY7Aq205iyrXKMUebXAcR3c7WI2F8jlwn+gGcy6PiWR3YlGdks\nieEekhs0NSRZzLNuqI7tZBdIW+g+u0iD9HKlxBGig5TYoSVBmgTo1Jp0Pi5a\nWVthBzVk/fN5LLe3dAdWGhl+WkGBLM6MGXlL3Lj+zCq3emScbfj/3l3jQT+L\nMN2k/4Rw/FT6Kh+h0FnIgYqiqcHl5qHq5upB9+nOyJKU60AQmAX1PGHcRn/7\nRwAaAQPprGeEK+BveuYBNBOW2PDiXav661VSJInK8sRxwknW5kQti7lzum38\nZPTp\r\n=cE4w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVd8NYUtrKSwK6ZV33cMl+NAAW6/yiIli/x5YQ3dkWkAiEAnz7iIQKT4cz0Kp+8R3qNLV+XM8CYR9ft4EnTidqjhOU="}]},"_npmUser":{"name":"x-tymchenko","email":"xtymchenko@ex.ua"},"directories":{},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-twitch-strategy_2.2.0_1610062337911_0.6275987913840522"},"_hasShrinkwrap":false}},"maintainers":[{"name":"x-tymchenko","email":"xtymchenko@ex.ua"}],"description":"Twitch (OAuth) authentication strategies for Passport. v5","keywords":["passport","twitch","twitch-v5","auth","authn","authentication","identity","oauth","oauth2","strategy"],"repository":{"type":"git","url":"git+https://github.com/d-relay/passport-twitch-strategy.git"},"author":{"name":"Tymchenko","email":"andrijmessia@gmail.com"},"bugs":{"url":"http://github.com/d-relay/passport-twitch-strategy/issues"},"readme":"Twitch 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.\r\n\r\n[Passport](http://passportjs.org/) strategies for authenticating with [Twitch](http://www.twitch.tv/)\r\nusing OAuth 2.0.\r\n\r\nThis module lets you authenticate using Twitch in your Node.js applications.\r\nBy plugging into Passport, Twitch authentication can be easily and\r\nunobtrusively integrated into any application or framework that supports\r\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\r\n[Express](http://expressjs.com/).\r\n\r\n## Install\r\n```bash\r\n$ npm install passport-twitch-strategy\r\n$ yarn add passport-twitch-strategy\r\n```\r\n## Usage of OAuth 2.0\r\n\r\n#### Configure Strategy\r\n\r\nThe Twitch OAuth 2.0 authentication strategy authenticates users using a Twitch\r\naccount and OAuth 2.0 tokens. The strategy requires a `verify` callback, which\r\naccepts these credentials and calls `done` providing a user, as well as\r\n`options` specifying a client ID, client secret, and callback URL.\r\n\r\n```javascript\r\nvar passport       = require(\"passport\");\r\nvar twitchStrategy = require(\"passport-twitch-strategy\").Strategy;\r\n\r\npassport.use('twitch', new twitchStrategy({\r\n    clientID: process.env.TWITCH_CLIENT_ID,\r\n    clientSecret: process.env.TWITCH_CLIENT_SECRET,\r\n    callbackURL: process.env.REDIRECT_URL,\r\n    scope: \"user:read:email\",\r\n    state: true\r\n  },\r\n  function(accessToken, refreshToken, profile, done) {\r\n    User.findOrCreate({ twitchId: profile.id }, function (err, user) {\r\n      return done(err, user);\r\n    });\r\n  }\r\n));\r\n```\r\n\r\n#### Authenticate Requests\r\n\r\nUse `passport.authenticate()`, specifying the `\"twitch\"` strategy, to\r\nauthenticate requests.\r\n\r\nFor example, as route middleware in an [Express](http://expressjs.com/)\r\napplication:\r\n\r\n```javascript\r\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\"));\r\napp.get(\"/auth/twitch/callback\", passport.authenticate(\"twitch\", { failureRedirect: \"/\" }), function(req, res) {\r\n    // Successful authentication, redirect home.\r\n    res.redirect(\"/\");\r\n});\r\n```\r\n\r\nOptionally, the `forceVerify` option can be set to `true` to indicate\r\nthat the user should be re-prompted for authorization:\r\n\r\n```javascript\r\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\", {forceVerify: true}));\r\n```\r\n\r\n## Example\r\n\r\n```javascript\r\nvar express        = require(\"express\");\r\nvar bodyParser     = require(\"body-parser\");\r\nvar cookieParser   = require(\"cookie-parser\");\r\nvar cookieSession  = require(\"cookie-session\");\r\nvar passport       = require(\"passport\");\r\nvar twitchStrategy = require(\"passport-twitch-strategy\").Strategy;\r\n\r\nvar app = express();\r\n\r\napp.set(\"views\", \"./views\");\r\napp.set(\"view engine\", \"ejs\");\r\n\r\n// Middlewares\r\napp.use(bodyParser.urlencoded({ extended: true }));\r\napp.use(cookieParser());\r\napp.use(cookieSession({ secret: \"somesecrettokenhere\" }));\r\napp.use(passport.initialize());\r\n\r\npassport.use('twitch', new twitchStrategy({\r\n    clientID: \"098f6bcd4621d373cade4e832627b4f6\",\r\n    clientSecret: \"4eb20288afaed97e82bde371260db8d8\",\r\n    callbackURL: \"http://127.0.0.1:3000/auth/twitch/callback\",\r\n    scope: \"user_read\"\r\n  },\r\n  function(accessToken, refreshToken, profile, done) {\r\n    // Suppose we are using mongo..\r\n    User.findOrCreate({ twitchId: profile.id }, function (err, user) {\r\n      return done(err, user);\r\n    });\r\n  }\r\n));\r\n\r\npassport.serializeUser(function(user, done) {\r\n    done(null, user);\r\n});\r\n\r\npassport.deserializeUser(function(user, done) {\r\n    done(null, user);\r\n});\r\n\r\napp.get(\"/\", function (req, res) {\r\n    res.render(\"index\");\r\n});\r\n\r\napp.get(\"/auth/twitch\", passport.authenticate(\"twitch\"));\r\napp.get(\"/auth/twitch/callback\", passport.authenticate(\"twitch\", { failureRedirect: \"/\" }), function(req, res) {\r\n    // Successful authentication, redirect home.\r\n    res.redirect(\"/\");\r\n});\r\n\r\napp.listen(3000);\r\n```\r\n\r\n## License\r\n\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2020 x_ror\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.\r\n","readmeFilename":"README.md","homepage":"https://github.com/d-relay/passport-twitch-strategy#readme"}