❤️Please Support me by subscribing to my channel 👉🏻[ Ссылка ]
In this Nest.js authentication tutorial, you'll learn how to create a secure and effective authentication system using three different strategies: local, JWT access tokens, and refresh tokens. We'll start by exploring the basics of each strategy and understanding how they work together to create a solid authentication solution. Then, we'll dive into implementing the local strategy, which involves authenticating users with a username and password. Next up is configuring our API routes to require a valid JWT access token, ensuring that only authenticated users can access protected resources. Finally, we'll cover how to implement refresh tokens, which allow users to obtain new access tokens without having to re-enter their credentials. Throughout the tutorial, we'll provide real world example to help you build a secure and reliable authentication system in Nest.js. Whether you're new to Nest.js or an experienced developer looking to enhance your skills, this tutorial has everything you need to get started with Nest.js authentication!
#JWT #refreshtokens #websecurity #APIsecurity #backenddevelopment #NodeJS #localstrategy
#webdevelopment
🚀 Crash Course of Nest.JS : [ Ссылка ]
❤️ Subscribe to my channel [ Ссылка ]
💻 Github Repo: [ Ссылка ]
📖 Chapters:
0:00 Intro
0:29: Validating User Credentials
5:35 Login function and creating jwt access tokens
11:44 Passport local strategy: authenticate users with username and password
14:42 Creating Local Strategy Guard
15:42 Creating Login API Endpoint
21:49 Testing Login API and Local Strategy
25:24 JWT Strategy: Protect APIs with JWT
35:52 Refresh Token
46:00 Outro
![](https://s2.save4k.ru/pic/twaUdKr06kA/maxresdefault.jpg)