Skip to content
0:00 / 0:00

#passport.js#express#authentication

Node.js Passport Login System Tutorial

Web Dev Simplified

1.7M subscribers • 6 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Kyle Cook
  • Linked in the descriptionWebDevSimplified/Nodejs-Passport-Login
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

1.1M views7 years ago2 recommendations

Web developmentSecurityNode.js, Deno and BunWeb and application security

Kyle Cook demonstrates how to build a secure user registration and login system using Node.js, Express, Passport, and bcrypt.

*Become a web developer* with my *FREE Web Development Roadmap* - _260+ videos, 120+ projects, 60+ articles_ 👉 webdevsimplified.com/web-dev-roadmap.html *FREE MongoDB Cheat Sheet* - _40+ methods_ 👉 webdevsimplified.com/mongodb-cheat-sheet.html User authentication and login is the most important feature of many websites, and most likely a key component to your next project. In this video I will be covering absolutely everything you need to know about user login and authentication in the most concise and simple way. We will be using Express for our server backend and Passport to help us manage the logged in state of users. We will also be sure to properly encrypt and hash all user passwords so that our application is completely secure. By the end of this video you will have built a fully functional login system that you can use in any of your future projects. 📚 Materials/References: GitHub Code: github.com/WebDevSimplified/Nodejs-Passport-Login Full Stack Node.js MongoDB Free Course: youtube.com/watch?v=XlvsJLer_No&list=PLZlA0Gpn_vH8jbFkBjOuFj… Node.js Authentication Tutorial: youtu.be/Ud5xKCYQTjM 🧠 Concepts Covered: - Setting up a server with Node.js and Express - Setting up Passport with Node.js and Express - How to encrypt user passwords - Restricting access to routes to only logged in users - Showing flash messages with Node.js and Express 🌎 Find Me Here: My Website: webdevsimplified.com Patreon: patreon.com/WebDevSimplified Twitter: twitter.com/DevSimplified Discord: discord.gg/7StTjnR GitHub: github.com/WebDevSimplified CodePen: codepen.io/WebDevSimplified #PassportLogin #WDS #NodejsLogin

Why it's here

2 people recommend this

What people say. Recommended as a great starting tutorial for implementing user authentication, cookies, and sessions in Node.js.

u/Y_Mystake_Oin r/node • Recommends

On “I wanna create a NOTES APP, with NodeJs in the backend, And ReactJs in the FrontEnd. But I have a Question! When I logged my users the server allows it. that's perfect! but when I refresh my aplication. I have to logging my users again. this is what I wanna avoid.. does someone have an”

This might help: Node.js Passport Login System Tutorial

u/gketumain r/node • Recommends

On “Any good tutorials on cookies, sessions and passport ?”

Take a look at this and start from here: [video Then see a simple implementation here: https://blog.risingstack.com/node-hero-node-js-authentication-passport-js/

u/ncls-in r/node • Mentions

On “How to handle different pages without clumsy code (and some other stuff)?”

Yeah, it's an Express server. >Read/watch some tutorials for using Express middleware with JWTs I'm currently watching this video. Is that approach good aswell?