问题
Im running node.js server with mongodb as a DB, for local and FB auth from browser I use passport.js How can I use both from mobile phone app? Can someone describe the flow precisely? Cause I couldnt really find precise explanation of such flow
few points that I dont get in the flow right away:
- How req.isAuthenticated is working with iphone apps
- How fb strategies work for iphone app?
回答1:
Try following scenario:
You can use facebook-ios-sdk for login via iphone to get facebook access token
Then authenticate facebook access token with your server using passport-facebook-token
I hope this scenario can help you.
来源:https://stackoverflow.com/questions/20094710/local-and-social-authorization-with-node-js-on-mobile-app