I'm developing an api server in (NodeJs/ hapi) coupled with an android application. I'm having a problem understanding how to do login via a third party like google and facebook.
So far my strategy is:
Next time when authentication. I'll just check the same data(from google) against the save data(my server). I'm pretty sure there is a better way to do it, but the documentation I have read so far leave me with a head ache.
Help is appreciated.
I just setup a demo project using ExpressJS. It would be interesting to have a fork for Hapi.
Check it out if want: http://git.io/RHnjBg