i learning build rest services (without clients) using node.js , passport. far able figure how establish facebook stratergy these examples knows client side, serving pages on successful or failure scenario. since not have idea clients be, have following questions;
since original call might have returned client without waiting call back, how go creating authentication in such way, same client come see status of authentication, put token in session on server side authentication completed?
there write anywhere explains how build rest services passport or other form of social media authentication?
i found closest answer here passport.js restful auth
mobile apps, since social media authentication happens @ client side, no need have auth , callback @ server side. rather, establish trust relationship client means of encrypted secret code , use https pass request server client once authenticated in client , update server authenticated token.