GraphQL Authentication: JWT, login, signup, and more! | NestJS PassportJS Tutorial
In this video we'll discuss the fundamentals of adding authentication to your GraphQL NestJS API. We'll talk about utilizing passport to use different types of authentication strategies. Specifically we will use the passport-local strategy to login with username and password. We'll also take a look at how to generate JWT to keep users logged in. Next, we'll protect our GraphQL queries by checking for access tokens in the headers, as well as verifying it. Finally we will explore how to properly do user sign-up / registration, specifically making sure that we are saving passwords safely. There are a lot of gotchas with using PassportJS with GraphQL, we'll talk about those at well. 00:00 - Intro 00:25 - Create new Nest application 00:55 - GraphQL setup 09:26 - Passport and Auth Module setup 12:43 - Local Strategy 17:03 - Login Mutation 21:15 - Auth Guard 25:34 - Summary of login flow 30:31 - Setting up JWT 35:40 - JWT Strategy 37:44 - JWT Auth Guard 39:24 - Setting Authorization header 39:54 - Summary of JWT flow 42:53 - Signup flow 46:06 - Bcrypt for password hashing 51:30 - Full summary of everything 52:50 - Outro

How to Manage User Access in NestJS | Authorization with CASL

7 Authentication Concepts Every Developer Should Know

Prisma 2 Impressions with NestJS | Next-gen Node.JS ORM?!

NestJS Crash Course: Everything you need to know! | NodeJS Tutorial 2023

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

Something is jamming GPS over Europe. Here's what we found

This setup has the best developer experience

Warum die Sperre von Claude Fable vorhersehbar war

Inside the Mind of Anthropic CEO Dario Amodei | The Circuit | Extended Interview

You don't need passwords anymore! NestJS passwordless magic link authentication

Decouple your NestJS code with this technique!

NestJS Authentication: JWTs, Sessions, logins, and more! | NestJS PassportJS Tutorial

Most Devs Get API Authentication Wrong ?

NestJS Authorization: RBAC, ABAC, claims-based, and more! | NestJS Guards Tutorial

The Hidden Cost Of GraphQL And NodeJS

How to Design APIs Like a Senior Engineer (REST, GraphQL, Auth, Security)

What Is JWT and Why Should You Use JWT

Is this the best NodeJS Authorization Library? | CASL JavaScript Tutorial

What Next.js doesn't tell you about caching...

