Comments (6)
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.
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.
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.
@jkevinburton Would you be willing to provide more details no how you did this? Maybe in a PR? Thanks.
from node-express-mongoose-demo.
@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.
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)
- An in-range update of babel-eslint is breaking the build π¨ HOT 3
- Cannot read property 'on' of undefined HOT 2
- An in-range update of multer is breaking the build π¨ HOT 1
- [nodemon] app crashed - waiting for file changes before starting... HOT 2
- An in-range update of compression is breaking the build π¨ HOT 1
- An in-range update of supertest is breaking the build π¨ HOT 5
- An in-range update of morgan is breaking the build π¨ HOT 1
- User validation failed: email: fn is not a function HOT 2
- An in-range update of cors is breaking the build π¨ HOT 1
- An in-range update of connect-mongo is breaking the build π¨ HOT 2
- TypeError: Cannot read property 'on' of undefined in server.js file HOT 2
- An in-range update of cookie-parser is breaking the build π¨ HOT 1
- Remove $ from bash codeblocks
- Catch block only checks 422 validation error HOT 1
- (node:54610) UnhandledPromiseRejectionWarning: MongoError: not authorized HOT 2
- docker security flaw
- Error running the project on local HOT 2
- req.user problem HOT 3
- Responsible disclosure policy HOT 2
- how to remove cannot get error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-express-mongoose-demo.