Coder Social home page Coder Social logo

Comments (6)

madhums avatar madhums commented on August 22, 2024

Yeah I was thinking of doing this for a long time, just not enough time atm. Will definitely add this functionality... Thanks for the reference, I will take a look at singly.

from node-express-mongoose-demo.

mspanish avatar mspanish commented on August 22, 2024

I am happy to repo that Singly works perfectly with your app. I made a gist with the bulk of what I did to integrate the 2, my app is a little different from the repo, I use dust instead of jade, and a few other structural things, but here is the gist: https://gist.github.com/mspanish/5341856

from node-express-mongoose-demo.

 avatar commented on August 22, 2024

I've already accomplished this. The way to do it is to call passport.authorize instead of passport.aunthenticate.
This will populate the req.account variable instead of req.user; this way, you can check to see if the user is currently logged in, if so, populate the "facebook" field, and if not, check for the account / or create an account and then log them in. Hopefully that was straight forward enough.

see this: http://passportjs.org/guide/authorize/

from node-express-mongoose-demo.

misbach avatar misbach commented on August 22, 2024

@jkevinburton Would you be willing to provide more details no how you did this? Maybe in a PR? Thanks.

from node-express-mongoose-demo.

hogart avatar hogart commented on August 22, 2024

@jkevinburton PR or just gist of how controllers/users.js/authCallback should look like would be of great help… Thanks.

from node-express-mongoose-demo.

madhums avatar madhums commented on August 22, 2024

It's as simple as adding passport-singly just like twitter or google (which is already in the repo.

from node-express-mongoose-demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.