This tutorial will help you create a fully working JWT authenticated server using Nest.js. Then we'll go further by adding refresh tokens to the application so that you can easily refresh your access tokens.
Code Repo: github.com/gabrielmcreynolds/...
Written Article: www.dev-influence.com/article...
For more articles visit: www.dev-influence.com/
Contents of this video:
0:00 - Intro
0:15 - JWT Auth Flow
0:55 - Project Setup
1:48 - Setting up Users
3:11 - AuthService
12:00 - Authentication Endpoints
13:23 - Setting up Passport.js
16:07 - Adding Authenticated Endpoints
17:00 - Run in Postman
18:35 - Conclustion
3 июл 2024