Local and social authorization with node.js on mobile app

浪子不回头ぞ 提交于 2019-12-25 01:54:08

问题


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:

  1. How req.isAuthenticated is working with iphone apps
  2. How fb strategies work for iphone app?

回答1:


Try following scenario:

  1. You can use facebook-ios-sdk for login via iphone to get facebook access token

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!