{"_id":"@passport-js/passport-twitter","_rev":"4-9128e2c33a8c364c0b58d96b136809c6","name":"@passport-js/passport-twitter","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.6":{"name":"@passport-js/passport-twitter","version":"1.0.6","keywords":["passport","twitter","auth","authn","authentication","identity"],"author":{"url":"http://www.jaredhanson.net/","name":"Jared Hanson","email":"jaredhanson@gmail.com"},"license":"MIT","_id":"@passport-js/passport-twitter@1.0.6","maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"homepage":"https://github.com/passportjs/passport-twitter#readme","bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"dist":{"shasum":"90e33afe5ada8a1ebc1652d2ef6f8839271fa823","tarball":"https://registry.npmjs.org/@passport-js/passport-twitter/-/passport-twitter-1.0.6.tgz","fileCount":7,"integrity":"sha512-xmjlYJ1ZubVuZ77sqd2m4QGJbmbEWJtlKYs/EMATxvucxfKsRFD+KytlBj2EXfLcAXrP7b/7ZfWNyFhl6PQF+w==","signatures":[{"sig":"MEUCIQDrw1kVxmg+vjRHoV7ng8Xomfq5xLq2BeZWyTQ3Gjan+gIgaaRSng3yDRYSTKn48Y/QhpZT2qCf7OF8zF00sstu/Qw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZmjoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJAg/7BLsK8dVZqvor8Kjq3RuR1QMSgtunJ3S8xRZB3dmeZCpjnHQm\r\nqRGuiP/6Du9x6DydR8Ji5+YhjDy6DZKM+6DMyathdxZlcmAc/87bVMoh2XQd\r\n+wdfYJtqTFUoYdjlMIOb1RKVHG+jIWKwV1Lkr0Xp7+Y/rZrwCoTGdoeW9/Ds\r\nOeFk+THByXwqIDkByFNvGOMQp1e0puOF+1hjKK59ieNVzL0dmKSsf73aMc12\r\nrB0dlcquFhaKJ44TD/dN5SPsSOg3PXMpIuOmO/cIT3aPENLCiPeuwkOtrH59\r\nFtkdjj3mQGk+9xwRdHYk5kHjNCZWxLcYI45mF/F7xxEk8rekDc0RMsMkineJ\r\nqYB8SFCO8/vXi8AUTqqUHHkLrhVAWzLtuF8Z06z0oE3a3BkeUTcsaMBfy3sc\r\nWaJuf+8/VtoaLH+ZQamuPSO/bc7O9pVYh00qeVfOv/cbosBNTFK/U+p4Kai6\r\ngNtu6j+xIbEdZ0WLgh6bMH2PiCjG4UU2DYE6KkHfJWrzHUN2IVbEbHJtAP9f\r\nltwKKbB4Nx8z4SgSXkEVa/ZZlj+MFB2dDJCIfwPtADHkV/ybnP03jUdUKtjD\r\n3PgC8gu1RkJ4oaEhQDCo+2RBNpMTqE23rtBXkcUgWsDTgrLydIo5yzS00g/7\r\n4zM0hQvB/yGErTlAlUnVYZm4Qtnyu4qsnHU=\r\n=QmtH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","engines":{"node":">= 0.4.0"},"funding":{"url":"https://github.com/sponsors/passportjs","type":"github"},"gitHead":"cf865b2e46fdde69aade17b9cbc82d464094ae3e","scripts":{"test":"mocha --require ./test/bootstrap/node --recursive"},"_npmUser":{"name":"allanice001","email":"allanice001@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git://github.com/passportjs/passport-twitter.git","type":"git"},"_npmVersion":"8.19.2","description":"Twitter authentication strategy for Passport.","directories":{},"_nodeVersion":"16.18.0","dependencies":{"passport-oauth1":"1.x.x","@passport-js/xtraverse":"^0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.x.x","mocha":"10.x.x","make-node":"0.4.6","chai-passport-strategy":"3.x.x"},"_npmOperationalInternal":{"tmp":"tmp/passport-twitter_1.0.6_1667655912755_0.7615427315059888","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@passport-js/passport-twitter","version":"1.0.7","keywords":["passport","twitter","auth","authn","authentication","identity"],"author":{"url":"http://www.jaredhanson.net/","name":"Jared Hanson","email":"jaredhanson@gmail.com"},"license":"MIT","_id":"@passport-js/passport-twitter@1.0.7","maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"homepage":"https://github.com/passportjs/passport-twitter#readme","bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"dist":{"shasum":"c07ac04c849145b64786cb8060fd664103ba9945","tarball":"https://registry.npmjs.org/@passport-js/passport-twitter/-/passport-twitter-1.0.7.tgz","fileCount":7,"integrity":"sha512-BeESbSjAxd484+YtBJO7sKxdid7ZYedOjzlybYoshqCVfM0O+vKi9/+J8UBIpvfBj840a9fS3nH4ugoCJTbPRA==","signatures":[{"sig":"MEUCIFSNtq3OPCKJmHc2dnzENIioPFxoVk1A558M+DrWi5nMAiEA2/kVxz/tkSP24gITNXTfQJAi8D53gmTXQo8z8j4BcIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf1z4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqW+RAAi5vAXSQ2fejYEwYaJ+TmUVczhSXiMFrHZ67PdlIPU+xY+a2J\r\nVOdwlMfXDLLOcG8Pu6zzo4qEFLg6mnzUCF/Pl7AnB/kdAaRXkoQHaToVk6mr\r\n3VihHk1QLXF7hCwR2+M+CyaiTGWq5lFBPrwrpDEPpHuR7qAHq5hXhdjIEFf8\r\nnu3H/D89RcdBwuXE1jjsdXwIhj7nPLJJ1EaU83m9apDIXgRDDjbaJ3VAxg9V\r\ncOghr1qR6qyEDX6S0o0X4qvYJwLXc7iCijs1gk06x3Wo3ljctXCOXlPWd7Ou\r\n0itLpjjYgBqWtIdRtFRd5KlMr+AJ1lSAomzU9ncZFeAPNuca+jpr+87hILlh\r\nfgBobZeP86XFtR62Q1+E4mVwFTd+9yZLpZR0BisRRHkJpg7XzMNrkUbF7pDL\r\nEUan85u3QwhF6sLbamw21XFQ+bSiPPaex4aPemKzLl7+83xe35N155a9A3GP\r\nL0edsEjiHpyNvAknUwSGnilTrhdHcgFfg+CpruGm+mn+zYxp3O/A4hT71jJC\r\n2lnLj3xqUEJn9tEg5vKuBmi8nhn52e2VM20oWQ5pkCJXrltfqNG4mHaLuHtk\r\ndb3FVJU0GS60mwxMENVyIiBbjybhu9KKqCLy/a5KJV8LJvRjCN8gKwmHV12B\r\nTWHss3FF6aGrSrZFTBaD1rzIA7TJr7pgY20=\r\n=2h0U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","engines":{"node":">= 0.4.0"},"funding":{"url":"https://github.com/sponsors/passportjs","type":"github"},"gitHead":"b2986dfb27b81a7da8040131256a9777c0530eec","scripts":{"test":"mocha --require ./test/bootstrap/node --recursive"},"_npmUser":{"name":"allanice001","email":"allanice001@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git://github.com/passportjs/passport-twitter.git","type":"git"},"_npmVersion":"8.19.2","description":"Twitter authentication strategy for Passport.","directories":{},"_nodeVersion":"16.18.1","dependencies":{"passport-oauth1":"1.x.x","@passport-js/xtraverse":"^0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.x.x","mocha":"10.x.x","make-node":"0.4.6","chai-passport-strategy":"3.x.x"},"_npmOperationalInternal":{"tmp":"tmp/passport-twitter_1.0.7_1669291255940_0.14759065059390442","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@passport-js/passport-twitter","version":"1.0.8","keywords":["passport","twitter","auth","authn","authentication","identity"],"author":{"url":"http://www.jaredhanson.net/","name":"Jared Hanson","email":"jaredhanson@gmail.com"},"license":"MIT","_id":"@passport-js/passport-twitter@1.0.8","maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"homepage":"https://github.com/passportjs/passport-twitter#readme","bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"dist":{"shasum":"371107bb1085e683aa7855421b66c0528d2bf32b","tarball":"https://registry.npmjs.org/@passport-js/passport-twitter/-/passport-twitter-1.0.8.tgz","fileCount":7,"integrity":"sha512-N2LrsXkMJ26HmYpjjdRBMuwfa9OoHTMvxMZCNnXdM3E2P5V5j+Hs8aZ0n+v20hlwYDrI4gacVfX3YAufUte4Dw==","signatures":[{"sig":"MEYCIQCe//+7XyMVOy6Ca8Xkwa5nmln5XgG55P2lxkTSbD5HHAIhALGRam+VQ6v5d6pcd6Atg/dfNSUx3So70VgV4w6eZOys","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvdKwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpN+Q//TKdls4n9GYIRxsXpj3218knvnDHmY/Qbxk1yL7aja+1ry8RV\r\n2JKJqON8/C4z7prGbWyOTxb9XzBNdW5z8XQd/zYqU5XSbbxh8uiIRcfmx2Wn\r\nBwSBxF2+yRXyW4wLEBg0lkjVKnWkxW6vYPAoft0w4JMNMg+X7ykY9s0edlFm\r\n8HtZjlfRSIVvfD65LOn8Dp3Qc4K6ZzqbDB0PdCOZkFD5+2i+emcAURsuzkQ3\r\n62P8wBnaWDAAfRTHLZW33Vyt0e1EvQmIg/QrRyu+kLHqQia8FO/kCo2NrMTo\r\nZcsb+ODDYlHKNv5N0nwwSy9NAyQ+P6Gd1efQNr+kvQNEbjySOy1KKe0uOzTX\r\nHfV0klpqRQ15wyosJV7jlShz9jTx9kj+Eb/5fLrV9dApYy2JetFNZ3iDvOqM\r\nJLUPFawhf+rkJWXSFSrFaR3y7KvTj7Sx03FSWmmI6fB/uPZNdpUhlyDVNGXE\r\nHCUe2PlVeCA5TH9Dp/OKAKFgAG/+HQLtltDVBsvIEbcGQsdipb22Z2h5NgHl\r\nG+JKASx+62peYIdxjvIxHBkE3Tv+jElhyjBu4AmkQshuMyTZoFx6pzRtAi0T\r\nXq9QiY67xrpvARyH/gcorSnr/8nZA3zzzO5jxSMhxGb0qMUSRH1QgdxP5B6M\r\nXhxKLLIP4E2SHFjP4+BPE2ooHybsQR/egW8=\r\n=/QsF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","engines":{"node":">= 0.4.0"},"funding":{"url":"https://github.com/sponsors/passportjs","type":"github"},"gitHead":"8d35520ce265d521c4a043c016b6fe4cffe2192c","scripts":{"test":"mocha --require ./test/bootstrap/node --recursive"},"_npmUser":{"name":"allanice001","email":"allanice001@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git://github.com/passportjs/passport-twitter.git","type":"git"},"_npmVersion":"8.19.2","description":"Twitter authentication strategy for Passport.","directories":{},"_nodeVersion":"16.18.1","dependencies":{"passport-oauth1":"1.x.x","@passport-js/xtraverse":"^0.1.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.x.x","mocha":"10.x.x","make-node":"0.4.6","chai-passport-strategy":"3.x.x"},"_npmOperationalInternal":{"tmp":"tmp/passport-twitter_1.0.8_1673384623793_0.3259143012570156","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@passport-js/passport-twitter","version":"1.0.9","keywords":["passport","twitter","auth","authn","authentication","identity"],"author":{"url":"http://www.jaredhanson.net/","name":"Jared Hanson","email":"jaredhanson@gmail.com"},"license":"MIT","_id":"@passport-js/passport-twitter@1.0.9","maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"homepage":"https://github.com/passportjs/passport-twitter#readme","bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"dist":{"shasum":"351456878589632afb00e6e08db2925096436315","tarball":"https://registry.npmjs.org/@passport-js/passport-twitter/-/passport-twitter-1.0.9.tgz","fileCount":7,"integrity":"sha512-5zywvztEUBPRGLVoQLCJVgtg16eYyDPfGaA88bLQCnG2gYvrUSGyrHy58qKwBgZdUfy/NnYv5F24qdvWUx0zzg==","signatures":[{"sig":"MEUCIDId3ibwMiYg48evhAtKVyH8pdZeJ1uZWI0ULoxx3rw1AiEAmV+fyfJUpGVvv9OIxHYcrCoI7XtT8neE8/KpISpGYNo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14196},"main":"./lib","engines":{"node":">= 0.4.0"},"funding":{"url":"https://github.com/sponsors/passportjs","type":"github"},"gitHead":"90c2606a350fe83e07fbf5f6567b29540dfd1d6e","scripts":{"test":"mocha --require ./test/bootstrap/node --recursive"},"_npmUser":{"name":"allanice001","email":"allanice001@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git://github.com/passportjs/passport-twitter.git","type":"git"},"_npmVersion":"10.8.2","description":"Twitter authentication strategy for Passport.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"passport-oauth1":"1.x.x","@passport-js/xtraverse":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"5.x.x","mocha":"10.x.x","make-node":"0.4.6","chai-passport-strategy":"3.x.x"},"_npmOperationalInternal":{"tmp":"tmp/passport-twitter_1.0.9_1727683790274_0.6810518479972463","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@passport-js/passport-twitter","version":"1.0.10","description":"Twitter authentication strategy for Passport.","keywords":["passport","twitter","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/passportjs/passport-twitter.git"},"bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/passportjs"},"license":"MIT","licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"@passport-js/xtraverse":"^0.1.4","passport-oauth1":"1.x.x"},"devDependencies":{"chai":"5.x.x","chai-passport-strategy":"3.x.x","make-node":"0.4.6","mocha":"10.x.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"mocha --require ./test/bootstrap/node --recursive"},"gitHead":"f8e1bb88941dae7b46732138bd9c8437bf41d12e","homepage":"https://github.com/passportjs/passport-twitter#readme","_id":"@passport-js/passport-twitter@1.0.10","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hirIwjs29OIw8Gt/unt7QyjbpekM/JwmjK8jlzhlpxBOCCa7MtGYMwQY6t2bhGevuXrxqORR2s4ShN78Sn4OMQ==","shasum":"49c2789fac0b8b95cc38bb7393ff9f314dd100b5","tarball":"https://registry.npmjs.org/@passport-js/passport-twitter/-/passport-twitter-1.0.10.tgz","fileCount":7,"unpackedSize":14191,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIQD9kgekxbkqr4G/AKy58FZe+OmqopnUycNYaIs9TG8DVQIfXQ9adcwAmZbea79hQwmVGgrpWqCZxUsOmZU1JyvEkg=="}]},"_npmUser":{"name":"allanice001","email":"allanice001@gmail.com"},"directories":{},"maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/passport-twitter_1.0.10_1740788218978_0.5101506184610929"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-05T13:45:12.703Z","modified":"2025-03-01T00:16:59.612Z","1.0.6":"2022-11-05T13:45:12.931Z","1.0.7":"2022-11-24T12:00:56.105Z","1.0.8":"2023-01-10T21:03:43.967Z","1.0.9":"2024-09-30T08:09:50.421Z","1.0.10":"2025-03-01T00:16:59.409Z"},"bugs":{"url":"http://github.com/passportjs/passport-twitter/issues"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"license":"MIT","homepage":"https://github.com/passportjs/passport-twitter#readme","keywords":["passport","twitter","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/passportjs/passport-twitter.git"},"description":"Twitter authentication strategy for Passport.","maintainers":[{"name":"allanice001","email":"allanice001@gmail.com"}],"readme":"# passport-twitter\n\n[Passport](http://passportjs.org/) strategy for authenticating with [Twitter](http://twitter.com/)\nusing the OAuth 1.0a API.\n\nThis module lets you authenticate using Twitter in your Node.js applications.\nBy plugging into Passport, Twitter 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/).\n\n<div align=\"center\">\n\n:heart: [Sponsors](https://www.passportjs.org/sponsors/?utm_source=github&utm_medium=referral&utm_campaign=passport-twitter&utm_content=nav-sponsors)\n\n</div>\n\n---\n\n<p align=\"center\">\n  <sup>Advertisement</sup>\n  <br>\n  <a href=\"https://click.linksynergy.com/link?id=D*o7yui4/NM&offerid=507388.922484&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fthe-complete-nodejs-developer-course-2%2F&u1=nzQ4K5UpDje9RRkYGfU82wFPXFWOCHAv5M0gEu5tJJH\">The Complete Node.js Developer Course</a><br>Learn Node. js by building real-world applications with Node, Express, MongoDB, Jest, and more!\n</p>\n\n---\n\n[![npm](https://img.shields.io/npm/v/passport-twitter.svg)](https://www.npmjs.com/package/passport-twitter)\n[![build](https://img.shields.io/travis/jaredhanson/passport-twitter.svg)](https://travis-ci.org/jaredhanson/passport-twitter)\n[![coverage](https://img.shields.io/coveralls/jaredhanson/passport-twitter.svg)](https://coveralls.io/github/jaredhanson/passport-twitter)\n[...](https://github.com/jaredhanson/passport-twitter/wiki/Status)\n\n## Install\n\n```bash\n$ npm i @passport-js/passport-twitter\n```\n\n## Usage\n\n#### Create an Application\n\nBefore using `passport-twitter`, you must register an application with Twitter.\nIf you have not already done so, a new application can be created at\n[Twitter Application Management](https://apps.twitter.com/).  Your application\nwill be issued a consumer key (API Key) and consumer secret (API Secret), which\nneed to be provided to the strategy.  You will also need to configure a callback\nURL which matches the route in your application.\n\n#### Configure Strategy\n\nThe Twitter authentication strategy authenticates users using a Twitter account\nand OAuth tokens.  The consumer key and consumer secret obtained when creating\nan application are supplied as options when creating the strategy.  The strategy\nalso requires a `verify` callback, which receives the access token and\ncorresponding secret as arguments, as well as `profile` which contains the\nauthenticated user's Twitter profile.   The `verify` callback must call `cb`\nproviding a user to complete authentication.\n\n```javascript\npassport.use(new TwitterStrategy({\n    consumerKey: TWITTER_CONSUMER_KEY,\n    consumerSecret: TWITTER_CONSUMER_SECRET,\n    callbackURL: \"http://127.0.0.1:3000/auth/twitter/callback\"\n  },\n  function(token, tokenSecret, profile, cb) {\n    User.findOrCreate({ twitterId: profile.id }, function (err, user) {\n      return cb(err, user);\n    });\n  }\n));\n```\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'twitter'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n```javascript\napp.get('/auth/twitter',\n  passport.authenticate('twitter'));\n\napp.get('/auth/twitter/callback', \n  passport.authenticate('twitter', { failureRedirect: '/login' }),\n  function(req, res) {\n    // Successful authentication, redirect home.\n    res.redirect('/');\n  });\n```\n\n## Examples\n\nDevelopers using the popular [Express](http://expressjs.com/) web framework can\nrefer to an [example](https://github.com/passport/express-4.x-twitter-example)\nas a starting point for their own web applications.\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2016 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n","readmeFilename":"README.md"}