In this video we will be going to be creating creating Refresh Token to create JSON Web Tokens for authentication in our .NET 6 Web API.
Support me on Patreon to access the source code:
[ Ссылка ]
00:00 Intro
01:29 Getting the starting source code and testing it
04:19 Designing and Theory of Refresh Tokens
31:18 Updating the Program.cs
32:59 Updating appsettings with expiry time
34:55 Updating AuthenticationController with dynamic Expiry Time
36:53 Updating Return DTO and Creating new DTO
39:01 Creating RefreshToken Table
44:10 Updating AuthenticationController to return RefreshToken
01:01:22 Create RefreshTokens action
01:28:40 Testing our code
01:35:16 Outro and summary
Some helpful videos
.Net Middleware: [ Ссылка ]
Dependency Injection: [ Ссылка ]
Build CRUD with .NET 6: [ Ссылка ]
Let us connect:
🌍 My website - [ Ссылка ]
📸 Instagram - [ Ссылка ]
🐦 Twitter - [ Ссылка ]
♯ Github - [ Ссылка ]
🎫 LinkedIn - [ Ссылка ]
💥 LinkTree - [ Ссылка ]
Gear I use (affiliate link): [ Ссылка ]
Support my work:
[ Ссылка ]
[ Ссылка ]
Hire Me:
[ Ссылка ]
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
#WebAPI #JWT #dotnet
![](https://i.ytimg.com/vi/2_H0Zj-C8EM/maxresdefault.jpg)