Authentication in Node.js - #1 Intro

Published: 18 December 2019
on channel: Code Realm
23,322
551

Welcome back to the channel! In this series, we're going to build a secure authentication system in Node.js featuring email confirmation, password reset, remember me, and more. We'll use Express for routing, MongoDB for data persistence, and Redis for session storage. I'll also be using TypeScript for type-checking and auto-complete, although it's entirely optional, and you can safely follow this tutorial with vanilla JavaScript instead.

Most of us take authentication features for granted, as they're often baked into the framework and offloaded to library maintainers. For example, PHP has Laravel, Python has Django and Flask, Ruby has Rails, and so forth. Sadly, although Node comes in many flavors of micro-frameworks, only a few (Adonis, Feathers) offer login facilities out of the box.

If you're called on to roll out your own login system, there are many security considerations from password storage to token generation that are critical to get right in order to keep your customer data safe. With these videos, I will try to equip you with the tools and demonstrate best practices for building a custom authentication module with security and scalability in mind.

As a pre-requisite, I suggest that you familiarize yourself with authentication on the web    • Authentication on the Web (Sessions, Cooki...   and session management in Express    • Session Authentication in Express  

Why authentication is hard   / your-node-js-authentication-tutorial-is-wrong  

GitHub repo https://github.com/alex996/node-auth


On this page of the site you can watch the video online Authentication in Node.js - #1 Intro with a duration of hours minute second in good quality, which was uploaded by the user Code Realm 18 December 2019, share the link with friends and acquaintances, this video has already been watched 23,322 times on youtube and it was liked by 551 viewers. Enjoy your viewing!