Node.js Google Authentication Using Passport.js | Signin With Google | Express, MongoDB & OAuth 2.0

Опубликовано: 30 Апрель 2021
на канале: Web Dev Lab
6,630
88

Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports common OAuth 2.0 scenarios such as those for web server, client-side, installed, and limited-input device applications. If you want to learn more you can check out my youtube channel.

⌚Timestamp

0:00:00 Introduction to OAuth
0:01:54 More Tutorials on Node.js
0:03:20 Setup express server
0:05:53 MongoDb atles database setup
0:10:02 Create router and route using express router
0:15:20 Using passport.js middleware
0:18:28 Setup google credential
0:23:37 Using passport js
0:24:14 Setup ejs view engine and materialize CSS
0:29:11 Signin get request
0:31:36 Request to google API, successfully redirecting and getting data
0:35:12 Create schema for the database
0:37:14 Find a user from the database or create a new user
0:43:00 Setup express session and reformat routes
0:48:00 Protecting route, dashboard access, mongo store, logout
1:01:47 Setting global variable and showing the right nav item

Website🌐🌐: https://webdevlab.org
👩🏾‍💻👨🏾‍💻Get source code: https://github.com/theamazinglesson/n...


#NodeJS #OAuth #Passport

⭕ Learn Fullstack development ⭕
✔Front-end development
Web UI UX design - http://bit.ly/2KTVUXx
Html css basic for beginner - https://bit.ly/2Hdrv8B
CSS Framework project - http://bit.ly/2KOfq7W
React.js beginner to pro - https://bit.ly/3m2XEyI
✔Back-end development
PHP Beginner to Pro: https://bit.ly/2T7Ui13
Node.js Basic to advanced: https://bit.ly/3lVzGp4


⭕ Learn more ⭕
Linux for beginner 🏹 http://bit.ly/2NzwtMg
Gimp Photoshop Photo Manipulation - https://bit.ly/3kd5pSj
Libre Office Calc - https://bit.ly/3jgexUO
Vector Graphics - http://bit.ly/2KTCIJy


🔶🔷 FOLLOW ME 🔶🔷
https://twitter.com/shayon_md?lang=en
  / theamazinglesson  
https://md-shayon.netlify.com/
https://theamazinglesson.blogspot.com/


🔑🔑 KEYWORDS 🔑🔑

React- Build an Image Gallery/Slide Show App
React Image Slideshow Tutorial

javascript,react,reactjs,image gallery,image slider,es6,react hooks,usestate,web development,web design,coding,learn to code,programming,thumbnail gallery,css,react slider
react,tutorial,javascript,transition,css3,html5,animation,fade in,fade out,translatex,ihatetomatoes,how to,image slideshow,slider,front-end tutorial