I would like some one to create a sample API with the following requirements.
* API should authenticate the users via FB/Google from mobile.
* Implementation difference in mobile is that the Access token would get generated at mobile end and we need to verify the Access token at our back end.
* Once the user's authentication is complete at server end, a JWT token should be generated for authentication via passport JS.
Tech stack
* NodeJS
* LoopBack [login to view URL]
* API's authentication and authorization should be oauth 2.0 complaint
* API's tokens should be JWT and not bearer tokens
* Third party login, viz google, facebook etc to be handled using passport plugin for LoopBack.