Learn how to protect your API routes using OAuth2 with Google as an identity provider.
We will be creating a REST API using NodeJS & Express. Then we will be protecting some API routes behind authentication. These routes will require the user to authenticate using OAuth2 with Google. We will be using PassportJS (http://www.passportjs.org/packages/passport-google-oauth2/).
Check out the code on Github: https://github.com/kriscfoster/node-google-oauth-2
Don't forget to Subscribe here: https://www.youtube.com/channel/UCWkzkhQ3syxBjjAYwqCbzYg?sub_confirmation=1