{"_id":"@ahextechnology/social-handles","_rev":"2-99a0af8d325eb0df08cad6bd79affd3f","name":"@ahextechnology/social-handles","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ahextechnology/social-handles","version":"1.0.0","keywords":["github","Gmail","Twitter","Facebook","LinkedIn"],"author":{"name":"Maneesha Padavala"},"license":"MIT","_id":"@ahextechnology/social-handles@1.0.0","maintainers":[{"name":"shivam30","email":"shivam@ahex.co.in"},{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},{"name":"saurabh.ahex","email":"saurabh@ahex.co.in"}],"homepage":"https://github.com/Maneesha7390/Social-handles#readme","bugs":{"url":"https://github.com/Maneesha7390/Social-handles/issues"},"dist":{"shasum":"f471562b414042b76e703d52ed65cad2a7feb29a","tarball":"https://registry.npmjs.org/@ahextechnology/social-handles/-/social-handles-1.0.0.tgz","fileCount":4,"integrity":"sha512-TWPoXKIfUWFstnxTOhCaqSAUUwfgVoroo6gz5gnBbRSJqaKjCym7u3Wn1TzFC74EFWIBqs76v0rvxAPvXsNVPw==","signatures":[{"sig":"MEUCIQC7jvqB/DfIVY6ttpI5bYXDhfwN3hFJuIylrtdv/rT0zwIgdyHPQq4BdDOVwjDeghSEhDtPXlzfdjKTjp/Uxh0MYAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10523},"main":"index.js","gitHead":"c38d9366196f83f3b5c9e788109dcb4fb2cc7baf","scripts":{"test":"node index.js"},"_npmUser":{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},"repository":{"url":"git+https://github.com/Maneesha7390/Social-handles.git","type":"git"},"_npmVersion":"10.7.0","description":"This project sets up various authentication strategies using Passport.js with support for Google, Facebook, Twitter, GitHub, and LinkedIn OAuth.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5","passport":"^0.7.0","passport-oauth2":"^1.8.0","passport-github2":"^0.1.12","passport-twitter":"^1.0.4","passport-facebook":"^3.0.0","passport-google-oauth":"^2.0.0","passport-google-oauth20":"^2.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/social-handles_1.0.0_1721719081382_0.9629942573722956","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@ahextechnology/social-handles","version":"1.0.1","keywords":["github","Gmail","Twitter","Facebook","LinkedIn"],"author":{"name":"Maneesha Padavala"},"license":"MIT","_id":"@ahextechnology/social-handles@1.0.1","maintainers":[{"name":"shivam30","email":"shivam@ahex.co.in"},{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},{"name":"saurabh.ahex","email":"saurabh@ahex.co.in"}],"homepage":"https://github.com/Maneesha7390/Social-handles#readme","bugs":{"url":"https://github.com/Maneesha7390/Social-handles/issues"},"dist":{"shasum":"41764ea836026d24d0d9d87778850419a30b62d1","tarball":"https://registry.npmjs.org/@ahextechnology/social-handles/-/social-handles-1.0.1.tgz","fileCount":4,"integrity":"sha512-ub50aJP76ZPghdRRpLMVxRC9eBGLYJZsRMjUV2ngHspCN5IykDdeiPWSp4ByCyxl1/Zi6ksFA6FA7K375KDSmA==","signatures":[{"sig":"MEUCIQDfx8OnmecKwZyPV4Q7on3x37f2NR/8r8jjVnADlZs1OAIgESH4stpKcfGWqNWCIrzBAn01/HPC/eBWmCrCYccFj0Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12278},"main":"index.js","gitHead":"5cf2b6db9c8a332b2cb6975c5e18771b431e995f","scripts":{"test":"node index.js"},"_npmUser":{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},"repository":{"url":"git+https://github.com/Maneesha7390/Social-handles.git","type":"git"},"_npmVersion":"10.7.0","description":"This project sets up various authentication strategies using Passport.js with support for Google, Facebook, Twitter, GitHub, and LinkedIn OAuth.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5","passport":"^0.7.0","passport-oauth2":"^1.8.0","passport-github2":"^0.1.12","passport-twitter":"^1.0.4","passport-facebook":"^3.0.0","passport-google-oauth20":"^2.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/social-handles_1.0.1_1721741324069_0.235711590408624","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@ahextechnology/social-handles","version":"1.0.2","description":"This project sets up various authentication strategies using Passport.js with support for Google, Facebook, Twitter, GitHub, and LinkedIn OAuth.","main":"index.js","scripts":{"test":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/Maneesha7390/Social-handles.git"},"keywords":["github","Gmail","Twitter","Facebook","LinkedIn"],"author":{"name":"Maneesha Padavala"},"license":"MIT","bugs":{"url":"https://github.com/Maneesha7390/Social-handles/issues"},"homepage":"https://github.com/Maneesha7390/Social-handles#readme","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5","passport":"^0.7.0","passport-facebook":"^3.0.0","passport-github2":"^0.1.12","passport-google-oauth20":"^2.0.0","passport-oauth2":"^1.8.0","passport-twitter":"^1.0.4"},"_id":"@ahextechnology/social-handles@1.0.2","gitHead":"277d87aabf508d7ae5ab865cab8fd6d2b33324a9","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-Ppv4IiTUxtVyiSadDupwSky+zgyaLZ5Q3OMMSwr87/LfKTqx/GFaZcC+hskROTvhjgfEum7ZGu61ATPRmZO1Wg==","shasum":"603916c0834ca170e7abd6cb074289169fe08dea","tarball":"https://registry.npmjs.org/@ahextechnology/social-handles/-/social-handles-1.0.2.tgz","fileCount":4,"unpackedSize":12246,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkziWCCrb5GOcCjko1ZR7fTmP7hVUlenDIp4o3R5zy0wIhAPssw602qxNEarwTaHLBSH1TYp23+c22zynCSujbE36P"}]},"_npmUser":{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},"directories":{},"maintainers":[{"name":"shivam30","email":"shivam@ahex.co.in"},{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},{"name":"saurabh.ahex","email":"saurabh@ahex.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/social-handles_1.0.2_1721741536623_0.11175294740296637"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-23T07:18:01.235Z","modified":"2024-07-23T13:32:16.947Z","1.0.0":"2024-07-23T07:18:01.537Z","1.0.1":"2024-07-23T13:28:44.200Z","1.0.2":"2024-07-23T13:32:16.765Z"},"bugs":{"url":"https://github.com/Maneesha7390/Social-handles/issues"},"author":{"name":"Maneesha Padavala"},"license":"MIT","homepage":"https://github.com/Maneesha7390/Social-handles#readme","keywords":["github","Gmail","Twitter","Facebook","LinkedIn"],"repository":{"type":"git","url":"git+https://github.com/Maneesha7390/Social-handles.git"},"description":"This project sets up various authentication strategies using Passport.js with support for Google, Facebook, Twitter, GitHub, and LinkedIn OAuth.","maintainers":[{"name":"shivam30","email":"shivam@ahex.co.in"},{"name":"maneeshapadavala","email":"maneesha.p@ahex.co.in"},{"name":"saurabh.ahex","email":"saurabh@ahex.co.in"}],"readme":"# Social-handles\r\n\r\n\r\n## Environment Variables\r\n\r\nMake sure to set the following environment variables in your project:\r\n\r\n```env\r\nPORT=3000\r\nAPP_URL=''\r\nLOCALHOST_URL='http://localhost:{port}'\r\n\r\n# Redirections\r\nSUCCESS_REDIRECT='{app_url}/success'\r\nFAILURE_REDIRECT='{app_url}/failure'\r\n\r\n# Google Login\r\nGOOGLE_CLIENT_ID='your-google-client-id'\r\nGOOGLE_CLIENT_SECRET='your-google-client-secret'\r\nGOOGLE_OAUTH_REDIRECT_URL='{app_url}/api/users/google/callback'\r\n\r\n# Facebook Login\r\nFACEBOOK_CLIENT_ID='your-facebook-client-id'\r\nFACEBOOK_CLIENT_SECRET='your-facebook-client-secret'\r\nFACEBOOK_OAUTH_REDIRECT_URL='{app_url}/api/users/facebook/callback'\r\n\r\n# Twitter Login\r\nTWITTER_CLIENT_ID='your-twitter-client-id'\r\nTWITTER_CLIENT_SECRET='your-twitter-client-secret'\r\nTWITTER_BEARER_TOKEN='your-twitter-bearer-token'\r\nTWITTER_ACCESS_TOKEN='your-twitter-access-token'\r\nTWITTER_ACCESS_TOKEN_SECRET='your-twitter-access-token-secret'\r\nTWITTER_OAUTH_REDIRECT_URL='{app_url}/api/users/twitter/callback'\r\n\r\n# GitHub Login\r\nGITHUB_CLIENT_ID='your-github-client-id'\r\nGITHUB_CLIENT_SECRET='your-github-client-secret'\r\nGITHUB_OAUTH_REDIRECT_URL='{app_url}/api/users/github/callback'\r\n\r\n# LinkedIn Login\r\nLINKEDIN_CLIENT_ID='your-linkedin-client-id'\r\nLINKEDIN_CLIENT_SECRET='your-linkedin-client-secret'\r\nLINKEDIN_OAUTH_REDIRECT_URL='{app_url}/api/users/linkedin/callback'\r\nLINKEDIN_AUTHENTICATION_URL='https://www.linkedin.com/oauth/v2/authorization'\r\nLINKEDIN_OAUTH_ACCESSTOKEN_URL='https://www.linkedin.com/oauth/v2/accessToken'\r\n\r\n```\r\n\r\n## Tested Dependencies and Versions\r\n\r\nThis package has been tested with the following dependencies and their respective versions:\r\n\r\n- `axios`: ^1.7.2\r\n- `dotenv`: ^16.4.5\r\n- `passport`: ^0.7.0\r\n- `passport-facebook`: ^3.0.0 (for Facebook SSO)\r\n- `passport-github2`: ^0.1.12 (for GitHub SSO)\r\n- `passport-google-oauth`: ^2.0.0 (for Google SSO)\r\n- `passport-oauth2`: ^1.8.0 (for LinkedIn SSO)\r\n- `passport-twitter`: ^1.0.4 (for Twitter SSO)\r\n\r\nand Node Version is 20.15.0\r\nTo initialize Passport.js and manage sessions in your application, include the following middleware setup in your main server file:\r\n\r\n``` javascript\r\n    app.use(passport.initialize());\r\n    app.use(passport.session());\r\n```\r\n\r\n## Google SSO Setup\r\nFor getting clientID, ClientSecret from googole-auth do follow this steps [Word](https://docs.google.com/document/d/11pSvp4d3AoU8vtu_K4deTDhRpuLT1A9-oDMIi1tnEfY/edit?usp=sharing).\r\n\r\nFor routing google API's use the below code\r\n``` javascript\r\n    router.get('/google', passport.authenticate('google', { scope: ['profile','email'] }))\r\n    router.get('/google/callback', passport.authenticate('google', { failureRedirect: 'your-failure-page-url' , successRedirect: 'your-success-page-url'}))\r\n```\r\n\r\n### Google SSO Testing\r\nFor a detailed implementation of Google SSO using Passport.js and how it integrates with this project, watch this [Loom video](https://www.loom.com/share/a1009acba4fb41088cb1b6953101086e?sid=afa9368d-aeab-4f55-8be3-38b18d475153).\r\n\r\n\r\n## Facebook SSO Setup\r\nFor getting clientID, ClientSecret from facebook-auth do follow this steps [Word](https://docs.google.com/document/d/16ha0NfVQhTgXqxBaWwuuf-u9OB__zlZBoHBJHByiWns/edit?usp=sharing).\r\n\r\nFor routing facebook API's use the below code\r\n``` javascript\r\n    router.get('/facebook', passport.authenticate('facebook'));\r\n    router.get('/facebook/callback', passport.authenticate('facebook', { failureRedirect: 'your-failure-page-url', successRedirect: 'your-success-page-url' }))\r\n```\r\n\r\n### Facebook SSO Testing\r\nFor a detailed implementation of facebook SSO using Passport.js and how it integrates with this project and we need some extra meta verification then we will redirect that to success page but even though we are getting profle info, watch this [Loom video](https://www.loom.com/share/f911accffe1e44de8a1ea883b059b98f?sid=7456cc84-8204-43d5-a288-8749c685272d).\r\n\r\n## Twitter SSO Setup\r\nFor getting consumerKey, consumerSecret from twitter-auth do follow this steps [Word](https://docs.google.com/document/d/1OnSMKzncvYBOcaV-XVa2Ki_HI67Y5sSwEW8EBf9il_I/edit?usp=sharing).\r\n\r\nFor routing twitter API's use the below code\r\n``` javascript\r\n    router.get('/twitter', passport.authenticate('twitter'));\r\n    router.get('/twitter/callback', passport.authenticate('twitter', { failureRedirect: 'your-failure-page-url', successRedirect: 'your-success-page-url' }))\r\n```\r\n### Twitter SSO Testing\r\nFor a detailed implementation of Twitter SSO using Passport.js and how it integrates with this project, watch this [Loom video](https://www.loom.com/share/963b4fde9e8e44b49a40f6cfcbb8555e?sid=20fc5544-1ee4-4c56-b728-6ad2acd92984).\r\n\r\n## GitHub SSO Setup\r\nFor getting clientID, ClientSecret from github-auth do follow this steps [Word](https://docs.google.com/document/d/1OnSMKzncvYBOcaV-XVa2Ki_HI67Y5sSwEW8EBf9il_I/edit?usp=sharing).\r\n\r\nFor routing github API's use the below code\r\n``` javascript\r\n    router.get('/github', passport.authenticate('github'));\r\n    router.get('/github/callback', passport.authenticate('github', { failureRedirect: 'your-failure-page-url', successRedirect: 'your-success-page-url' }))\r\n```\r\n### GitHub SSO Testing\r\nFor a detailed implementation of github SSO using Passport.js and how it integrates with this project, watch this [Loom video](https://www.loom.com/share/8868b65e417d4d56bb6624e745ca257e?sid=14c50fb4-df26-43be-9acd-48276e3eff7b).\r\n\r\n## LinkedIn SSO Setup\r\nFor getting clientID, ClientSecret from linkedin-auth do follow this steps [Word](https://docs.google.com/document/d/1CuMsLLnlxncqyXC3gQBG1LhMpi2v7vsFnnKtYM4M2Rw/edit?usp=sharing).\r\n\r\nFor routing linkedin API's use the below code\r\n``` javascript\r\n    router.get('/linkedin', passport.authenticate('linkedin'));\r\n    router.get('/linkedin/callback', passport.authenticate('linkedin', { failureRedirect: 'your-failure-page-url', successRedirect: 'your-success-page-url' }))\r\n```\r\n\r\n### Linkedin SSO Testing\r\nFor a detailed implementation of linkedin SSO using Passport.js and how it integrates with this project, watch this [Loom video](https://www.loom.com/share/5282215d0de8485fbb9b6539814ff21a?sid=178f7569-1429-4dc9-97b4-e6f80666b4a0).","readmeFilename":"README.md"}