{"_id":"social-login","_rev":"66-6e0f8def925234cec56f3c5c7aab8b52","name":"social-login","description":"Passportjs too complicated to integrate? Social-Login wraps Passportjs and let you setup one-click logins to 13 social-sites out of the box, without headache.","dist-tags":{"latest":"0.2.8"},"versions":{"0.0.2":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.0.2","homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.0.2","dist":{"shasum":"8b2020112b023af39016df8622182699e6c39632","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.0.2.tgz","integrity":"sha512-S3VmDpryUSNejecEFE8pR9KPw4mHewJllDiYqb6Eg1TkAK2K1VRtc8uBVZfiz1gC2VYclXrL1l52SEYMR3GW6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDSE/R2xelrvRq9zP0G/o6BCHAP8Q9LSf2Pdy7oTxbUgIgAbvH/b7VU9wRkXP9B8C0ayZ6Vtb6m3gz5OGfEilutvk="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.0.3":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.0.3","homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.0.3","dist":{"shasum":"7c95f1ed7de21142f7dde2e8ee94597e5a8f64d3","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.0.3.tgz","integrity":"sha512-4K4aLGWDK7Va9A8lCCP25fkVj8EiE4vzfnWMsECiWn228+yCUMYEeGtFWJplzHN69aBMmAUIzupruThDT3OtQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjXaKGhBkzRgP+2LGo5eeS5cfR0zyu/bawbbM3xLoJ8gIhALlY9ZoJCgCBchExKqjVECNSqQRoOMvGXqt4+vw7q/GA"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.0.6":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.0.6","homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.0.6","dist":{"shasum":"9ce015b4f3ec885e3816509b5ee7cbf99ab22f3d","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.0.6.tgz","integrity":"sha512-gHWVEAILzLUM8p+1LmBcD+WxLkjPurTytjc0XHEntcxti6kz9QkUnGfShSlLToAX79eFr9fZa4CpEi0aYxZ25Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDuuBDNsqCWqBE8mx25lZAUGaQaswlIvY4+q755uCI1/AiEAyA7VG6fe5ktdh2TBWVRBDDxQv7H84jQtinXKCLELWJU="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.0.8":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.0.8","contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.0.8","dist":{"shasum":"9f58493912435d052b57f928ac9f4785ff4c83d4","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.0.8.tgz","integrity":"sha512-y+4dsUF51VzSJyAKq8EEWwyZoJu4kMu8VhdwZu0P7VeMpJIcnp5ih2K6K1Pl0alEpl4IlWu/Sbe2xnqQFHOxpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1dvTQdVwtNq4UiHaRrGZ0QuDgzmR3poXmAsGMSOdR7AiAI5Sf+2PHTn1HTx6Q7j1W6Ae0kL0XE3L1k/uAhKwuAJg=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.0.10":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.0.10","contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.0.10","dist":{"shasum":"b2cba55a01ce8c64693413e7085738137212dcdc","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.0.10.tgz","integrity":"sha512-nATIJ9HhC6uv5hb0BI5rekHjMbauxcr1NUrmhPgergNWzlk/4/c0F+wg8e+Zl81zTuaqCg0dnOFRs8MsKlqtGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDztmtSTQlUrVVBVy+8PFygoWgzHp6w18WBU3MujH1KGQIgJQc5b//DdvYSQaqTw9PdAK/purni3XTZMIeqNvnJXs4="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.1.0":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.1.0","contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.1.0","dist":{"shasum":"ef0ad83ffea810e99f4ac78efa32f3955d0748c9","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.1.0.tgz","integrity":"sha512-RFUexvQxIlKge4pP/lGsQggFPHQo+UurOgPogRlVJFW/tw1upJQb3+/aYc20VkGt/ymYFXqK8XpMWm+fOVi5Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbcmzYrmlEU8Ejv6LzL14UITBmBGa4yQbWl7YovlthTwIhAKMZ2f9JRfLDdQx7BJya0cZeXVn5OZCv/WdYh0y6qhIH"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.1.4":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.1.4","contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-foursquare":"latest","passport-imgur":"latest","passport-meetup":"latest","passport-tumblr":"latest","passport-wordpress":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.1.4","dist":{"shasum":"acc828c74bbc518f9610395a8c7e254e335aa007","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.1.4.tgz","integrity":"sha512-Sr8bcz+FxNYIY2PktlW6a88CrwyJeSXIISj7g85CNK8VNxXLOHKyNDv/910ZakVr82geGwnZAbrKWHZbAIAmJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwxi9r/eiYFAD9N0qwmD9mWhjqcbNfP66dJ4qE4i6j/AiEAm7gxQUw0RUc116w3QDnKQVg69kLCG6GulUdcHpq2w/Q="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.2.4":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"social-login","version":"0.2.4","contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-foursquare":"latest","passport-imgur":"latest","passport-meetup":"latest","passport-tumblr":"latest","passport-wordpress":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.2.4","dist":{"shasum":"9d64572192c0af39814377c145d7ffb4780869c1","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.2.4.tgz","integrity":"sha512-M6OJHM1kLTJWm1hLlzZIxbAXbciTxreOgDIZNaNbgjcJGfWVzL3LOAt6l7HVfdcy7dYlyX59o8ITayNAsJuNVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM8s8wq/ewB6nRqFJVn7jwYE2DtXf0foy7qOa3MFqaLQIhALSjS2menoI2o3lvWm5gIEGZccQrdxd4VmoCAw9AWgoG"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.2.6":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"Passportjs too complicated to integrate? Social-Api wraps Passportjs and let you setup one-click logins to 13 social-sites out of the box, without headache.","version":"0.2.6","keywords":["passport","oauth2","auth","authentication","linkedin","facebook","twitter","instagram","github","google","amazon","dropbox","foursquare","imgur","meetup","wordpress","tumblr"],"contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-foursquare":"latest","passport-imgur":"latest","passport-meetup":"latest","passport-tumblr":"latest","passport-wordpress":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.2.6","dist":{"shasum":"a05f740411bb7953a610ccd02e5d4a7ac557b24c","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.2.6.tgz","integrity":"sha512-rh2PdTr1EmIbHN/iX4My5Q6C70AgaYDzDLen1o81flEgkK4dRrvISkwJ+YiDZFvrS5SJwcnUx4QI43L+1ojtRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClpP8T5OUheENedVkH40VXj++PQHI9ihMFnik5YL9hPAiB+n3QvB1kpFbWrspFTVYobSxMVRBgZL8A2qmt19r8lCQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.2.7":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"Passportjs too complicated to integrate? Social-Login wraps Passportjs and let you setup one-click logins to 13 social-sites out of the box, without headache.","version":"0.2.7","keywords":["passport","oauth2","auth","authentication","linkedin","facebook","twitter","instagram","github","google","amazon","dropbox","foursquare","imgur","meetup","wordpress","tumblr"],"contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-foursquare":"latest","passport-imgur":"latest","passport-meetup":"latest","passport-tumblr":"latest","passport-wordpress":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.2.7","dist":{"shasum":"f4f11f8e6f52a0aef3e369617345566ba12221f0","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.2.7.tgz","integrity":"sha512-Yri8YXxevE0B9VMMdpcpo+Q/q0rnzfTFDPJk8xo2oNrdtmBoU2fmPaCIrsWVqzi976RoYQ/FWNNlW3w1/kKhKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU9jDfAHqFQCH4D8QIWLpnv/wtrNYFFOpU4MKgcI7sBQIhAO+Z76rkUKGLfjo69GkMmZyJMggLH7eUFJ7oxxqLMDXF"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"}]},"0.2.8":{"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"name":"social-login","description":"Passportjs too complicated to integrate? Social-Login wraps Passportjs and let you setup one-click logins to 13 social-sites out of the box, without headache.","version":"0.2.8","keywords":["passport","oauth2","auth","authentication","linkedin","facebook","twitter","instagram","github","google","amazon","dropbox","foursquare","imgur","meetup","wordpress","tumblr"],"contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"homepage":"https://github.com/26medias/social-login","licenses":[{"type":"MIT","url":"https://raw.github.com/26medias/social-login/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"main":"social-login.js","engines":{"node":"*"},"dependencies":{"toolset":"latest","underscore":"latest","passport-google":"latest","passport-twitter":"latest","passport-facebook":"latest","passport-linkedin":"latest","passport-youtube":"latest","passport-instagram":"latest","passport-amazon":"latest","passport-foursquare":"latest","passport-imgur":"latest","passport-meetup":"latest","passport-tumblr":"latest","passport-wordpress":"latest","passport-dropbox-oauth2":"latest"},"devDependencies":{},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"_id":"social-login@0.2.8","dist":{"shasum":"c04599a04cc456dbda627b3034ddc373fc303694","tarball":"https://registry.npmjs.org/social-login/-/social-login-0.2.8.tgz","integrity":"sha512-zJBmBaH+UdZHBMORL9Q9iRv4v5QQ75mkHPDKxpiNhx/kJBCBUOw2AWcyFKlbVpjP+gzweFSv9gM9IkA5K+PfYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBu6FoJqKzUsCCX5Uaj2uk0MjQfvfP79VEsUM+TypnMUAiEAkmuGWb2ebr4C+4xC2yWF73LeKJF+aXWl8W9fPv6EabI="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"26medias","email":"julien@twenty-six-medias.com"},"maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"},{"name":"pagevamp","email":"julien@pagevamp.com"}]}},"readme":"# Social-Login #\r\n\r\nSocial-login is a utility built on top of PassportJS that makes it a lot faster to setup various social logins on your site, without having to deal with PassportJS' complicated and non-standardized API.\r\n\r\nSocial-login also pre-parse the data to return only the part you care about. It will also return the name of the unique property in the data ('id', 'ID', 'name', ...), so that you can identify the user's account easily.\r\n\r\nYou can literally setup a social login for 13 social sites in less than 10 minutes, without headache.\r\n\r\n## Support ##\r\nYou can install the following social logins out of the box:\r\n\r\n*   facebook\r\n*   twitter\r\n*   instagram\r\n*   linkedin\r\n*   github\r\n*   google\r\n*   amazon\r\n*   dropbox\r\n*   foursquare\r\n*   imgur\r\n*   meetup\r\n*   wordpress\r\n*   tumblr\r\n\r\n## install ##\r\n`npm install social-login`\r\n\r\n## setup ##\r\n```\r\n// Setup express\r\nvar express     \t    = require('express');\r\nvar app                 = express();\r\n// Setup express here...\r\n\r\n\r\n// Setup social-login\r\nvar socialLoginClass    = require(\"social-login\");\r\n\r\n// Init\r\nvar socialLogin\t\t\t= new socialLoginClass({\r\n\tapp:\tapp,    // ExpressJS instance\r\n\turl:\t'http://127.0.0.1:5000',  // Your root url\r\n    onAuth:\tfunction(req, type, uniqueProperty, accessToken, refreshToken, profile, done) {\r\n\t\t\r\n        // This is the centralized method that is called when the user is logged in using any of the supported social site.\r\n        // Setup once and you're done.\r\n        \r\n        findOrCreate({\r\n\t\t\tprofile:\tprofile,        // Profile is the user's profile, already filtered to return only the parts that matter (no HTTP response code and that kind of useless data)\r\n\t\t\tproperty:\tuniqueProperty, // What property in the data is unique: id, ID, name, ...\r\n\t\t\ttype:\t\ttype            // What type of login that is: facebook, foursquare, google, ...\r\n\t\t}, function(user) {\r\n\t\t\tdone(null, user);   // Return the user and continue\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Setup the various services:\r\nsocialLogin.use({\r\n    facebook:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID:\t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\",\r\n\t\t\tauthParameters:\t{\r\n\t\t\t\tscope: 'read_stream,manage_pages'\r\n\t\t\t}\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/facebook\",           // The URL to use to login (<a href=\"/auth/facebook\">Login with facebook</a>).\r\n\t\t\tcallback: \t\"/auth/facebook/callback\",  // The Oauth callback url as specified in your facebook app's settings\r\n\t\t\tsuccess:\t'/',                        // Where to redirect the user once he's logged in\r\n\t\t\tfail:\t\t'/auth/facebook/fail'       // Where to redirect the user if the login failed or was canceled.\r\n\t\t}\r\n\t},\r\n\ttwitter:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/twitter\",\r\n\t\t\tcallback: \t\"/auth/twitter/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/twitter/fail'\r\n\t\t}\r\n\t},\r\n\tinstagram:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/instagram\",\r\n\t\t\tcallback: \t\"/auth/instagram/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/instagram/fail'\r\n\t\t}\r\n\t},\r\n\tgithub:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/github\",\r\n\t\t\tcallback: \t\"/auth/github/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/github/fail'\r\n\t\t}\r\n\t},\r\n\tlinkedin:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\",\r\n\t\t\tauthParameters:\t{\r\n\t\t\t\tscope: ['r_basicprofile', 'r_emailaddress', 'r_fullprofile', 'r_contactinfo', 'r_network', 'rw_nus']\r\n\t\t\t}\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/linkedin\",\r\n\t\t\tcallback: \t\"/auth/linkedin/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/linkedin/fail'\r\n\t\t}\r\n\t},\r\n\tgoogle:\t{\r\n\t\tsettings:\t{}, // Google doesn't take any API key or API secret\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/google\",\r\n\t\t\tcallback: \t\"/auth/google/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/google/fail'\r\n\t\t}\r\n\t},\r\n\tamazon:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\",\r\n\t\t\tauthParameters:\t{\r\n\t\t\t\tscope: ['profile', 'postal_code']\r\n\t\t\t}\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/amazon\",\r\n\t\t\tcallback: \t\"/auth/amazon/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/amazon/fail'\r\n\t\t}\r\n\t},\r\n\tdropbox:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/dropbox\",\r\n\t\t\tcallback: \t\"/auth/dropbox/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/dropbox/fail'\r\n\t\t}\r\n\t},\r\n\tfoursquare:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/foursquare\",\r\n\t\t\tcallback: \t\"/auth/foursquare/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/foursquare/fail'\r\n\t\t}\r\n\t},\r\n\timgur:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/imgur\",\r\n\t\t\tcallback: \t\"/auth/imgur/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/imgur/fail'\r\n\t\t}\r\n\t},\r\n\tmeetup:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/meetup\",\r\n\t\t\tcallback: \t\"/auth/meetup/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/meetup/fail'\r\n\t\t}\r\n\t},\r\n\t// http://developer.wordpress.com/docs/oauth2/\r\n\twordpress:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/wordpress\",\r\n\t\t\tcallback: \t\"/auth/wordpress/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/wordpress/fail'\r\n\t\t}\r\n\t},\r\n\ttumblr:\t{\r\n\t\tsettings:\t{\r\n\t\t\tclientID: \t\t\"YOUR_API_KEY\",\r\n\t\t\tclientSecret: \t\"YOUR_API_SECRET\"\r\n\t\t},\r\n\t\turl:\t{\r\n\t\t\tauth:\t\t\"/auth/tumblr\",\r\n\t\t\tcallback: \t\"/auth/tumblr/callback\",\r\n\t\t\tsuccess:\t'/',\r\n\t\t\tfail:\t\t'/auth/tumblr/fail'\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n\r\n## Options ##\r\nDo you need to receive the raw data returned by the Oauth login rather than the filtered one?\r\n\r\nSimply pass `returnRaw: true` in the setup parameters:\r\n\r\n```\r\nvar socialLogin    \t\t= new socialLoginClass({\r\n    returnRaw:  true,   // Set this to true (default: false)\r\n\tapp:\t    app, \r\n\turl:\t    'http://127.0.0.1:5000',\r\n    onAuth:\t    function(req, type, uniqueProperty, accessToken, refreshToken, profile, done) {\r\n\t\t// 'profile' now contains the raw unfiltered data from the Oauth login.\r\n\t}\r\n});\r\n```","maintainers":[{"name":"26medias","email":"julien@twenty-six-medias.com"},{"name":"pagevamp","email":"julien@pagevamp.com"}],"time":{"modified":"2022-06-26T21:50:17.289Z","created":"2014-07-10T16:58:43.918Z","0.0.2":"2014-07-10T17:00:17.183Z","0.0.3":"2014-07-10T19:07:19.352Z","0.0.6":"2014-07-10T19:50:22.664Z","0.0.8":"2014-07-10T19:56:05.698Z","0.0.10":"2014-07-10T22:17:17.643Z","0.1.0":"2014-07-10T23:23:43.973Z","0.1.4":"2014-07-11T16:05:19.090Z","0.2.4":"2014-07-11T17:15:33.485Z","0.2.6":"2014-07-11T19:44:47.104Z","0.2.7":"2014-07-11T19:45:25.226Z","0.2.8":"2014-10-10T16:29:41.474Z"},"readmeFilename":"README.md","homepage":"https://github.com/26medias/social-login","repository":{"type":"git","url":"git://github.com/26medias/social-login.git"},"author":{"name":"Julien Loutre","email":"julien@twenty-six-medias.com","url":"http://www.twenty-six-medias.com/"},"bugs":{"url":"https://github.com/26medias/social-login/issues"},"contributors":[{"name":"Pagevamp","email":"julien@pagevamp.com"}],"keywords":["passport","oauth2","auth","authentication","linkedin","facebook","twitter","instagram","github","google","amazon","dropbox","foursquare","imgur","meetup","wordpress","tumblr"],"users":{"antecedo":true,"chrisayn":true,"nguru":true,"nachbar90":true,"iamgs7":true,"kunalgaurav18":true,"finix":true,"miloc":true,"method76":true,"nagra":true,"dineshmickey":true}}