The Ultimate Auth Guide , Using NestJS & GraphQL | Strategies, Guards, Custom Decorators
In this video, we will be focussing on implementing Authorization, meaning being able to access protected queries and mutations in our NestJs Application. We will be making use of Guards and Strategies using the famous Passport Library. Also, we will be creating custom decorators for making queries and mutation public accessible( without a valid access token), for extracting the user object or userId from the request object and so on...
Protected routes will be accessible when providing a valid accessToken.
For being able to code along with this video, make sure you have completed the previous videos where we have implemented Authentication ( sign in, signup, logout), issuing access tokens, refresh tokens.
Do you need something from Amazon? If you want to support my work and motivate me to produce more & better programming content, use my Amazon-Affiliate-Link.
It does not cost you any extra money, but I get a little commission, whenever you buy anything via this link. It means the world to me 😊
🌟 Affiliate-Link: amzn.to/3QaXk0A
Пікірлер: 19