Protect REST API after social login with Node.js and Express.js demo

This website is the demo for the article Protect REST API after social login with Node.js and Express.js.

Please look the network and the console tab on dev tool.

working...

Authentication flow

click anywhere to close

1 - Log yourself in using a social network

connecting to facebook... connecting to google...

2 - Call the server with the social token.

this button is enabled after the social login

3 - Call the server api

enabled after login on server


server response: