I have seen the playlist of million subscriptions of the channel. but your teaching style and explanation is great.
@MakarnaDusmani-f3oАй бұрын
I can't understand what he's saying, and there aren't subtitles.
@tfnt3839Ай бұрын
@@MakarnaDusmani-f3o I think video is sufficient , if you watch carefully in mute mode .
@Javedboqo1 Жыл бұрын
All of videos from this guy are very useful and amazing
@ctauheedpasha15272 ай бұрын
the thing is the way you make us understand the concept are so good. In previous video you thought how to implement cookies but i never got time to watch the whole video but i created a logic by myself to delete the cookie id when a user clicks logout such that it redirects me to the login page again. Thank you so much and keep up the good work!!
@omprakashshaw79624 күн бұрын
Completed half of the playlist , thank for explaing things so easily ❤❤
@dhruvsolanki44734 ай бұрын
Stateless vs Stateful understood because of you, thanks!
@tgayush1424Ай бұрын
Maza a gaya your explanation is gazab , full samjh me a jata hai sab kuch.
@weforyouweb1165 Жыл бұрын
You are gem 🎉 You have very very deep knowledge of all things ❤🎉🎉
@gohit87033 ай бұрын
thanku piyush you made my journey possible to project building
@namannema33498 ай бұрын
i like the way you explain by giving examples and your explanations are very user friendly
@joban_dhillonn Жыл бұрын
bahot badiya exaple de kar samajiya sir apne secret key bhot confush tha thankuu
@Shashwat-0002 ай бұрын
10:38 you changed the token. the email was changed, the new token contains Tcf90 at last but at 10:39 (HXfCY at last) there is a cut in video where you changed it, i was getting the glitch and sure you too but you not explained that in video and directly changed something.
@knightcore40624 ай бұрын
finally understand sessions cookies and jwt...thank you sirji!!!!🙏🙏🙏🙏
@Shashwat-0002 ай бұрын
There is no login if you changed the email using secret password also. at 10:38 to 10:39 even he can't login. there is a cut in the video from 10:38 to 10:39 where somehow he got loggedIn,the funny thing is at 10:38 the token he copied frow jwt is different from 10:39 (where there is a cutshot in the video) and he got login.
@banothutharun27433 ай бұрын
wow excellent explaination..thank you brother for this playlist 😊
@webdeveloper3529 Жыл бұрын
❤ sir your lectures are blessings for me... plz cover advanced nodejs caching, threading, etc...
Hey! Great explanation! I have a couple of queries: 1. How stateful approach is taking memory on server? In the end, we used DB instead of map, right? And anyhow, we do store createdBy anyways. So mainly is logout the issue? 2. Also, in stateful, why does logout happen even after persisting createdBy to DB?
@AfhamAdian11 ай бұрын
this is the best on internet
@Black-Curtains Жыл бұрын
Brother! as we are storing tokens with cookies. Someone can copy that token and log in, as you already demonstrated. Is it a secure way? कृपया मार्गदर्शन करें..
@piyushgargdev Жыл бұрын
Good Point, I'll surely clear your doubt in next video ✨
@satyampal723510 ай бұрын
Awesome explanation bhai 👌
@AmitSingh-nq6bp4 ай бұрын
I really like his vs code theme , did anyone know the name of it ?
@shubhamgupta-bl1tr Жыл бұрын
But if we store sessions in database tab to problem ni hogi na in statefull
@Ayush3726211 ай бұрын
He solved your doubt in the next video!!!
@shi-nee7966 Жыл бұрын
sir i am getting error "jwt malformed" i tried matching codes, also searched on stackoverflow but just couldnt solve the error...please help if you know...i will update if i get the solutain
@dishantsingh5790 Жыл бұрын
i got the same error just now, restart ur server then dont directly go to "/" route , firstly clear cookie from Browser then go to the login page , login as user , then everythng will work fine
@daniyalghani4857 Жыл бұрын
i got the same error thank you brother @@dishantsingh5790
@harshrajsinha01210 ай бұрын
it's not working bro @@dishantsingh5790
@usmanmunir524110 ай бұрын
I am still getting error @@dishantsingh5790
@usmanmunir524110 ай бұрын
How you resolve this error?? @shi-nee7966
@shivaverma859 ай бұрын
I dont know why everytime its giving me error as jwt malformed but i am writing the same code as you have written .. I have seen your all videos upto authentication and everything is fine but i dont know why as soon as i am using jwt its not working . i am working on it to find error from past 2 hours but its not working please help
@rakshitgupta17718 ай бұрын
same problem aari hai bhai mujhe bhi solve hui kya???
@YashJain-hd2rs8 ай бұрын
Same bro
@niyafofficial14766 ай бұрын
From 2days
@PubG-dl5eh Жыл бұрын
Great video sir👍
@NKAnimations-mm2pp6 ай бұрын
Sir I really like your videos but there are 2 problems which I am facing: 1. Your authentication videos are dependent on URLGeneration videos. 2. If someone face any error in the URL at any point he wont be able to continue until that error gets resolved. 3. Solution : if you could provide the source code then it would be easier for us to resolve our errors. 4. Solution : If you could make such videos which are not dependent on each other then it would be easier for us to understand each concept from the Scratch
@OTTStar3346 ай бұрын
source code are in the description
@ET21BTIT051_KRUSHANGRANGOONWAL4 ай бұрын
@@OTTStar334 where is it ?
@Motivation-w7r Жыл бұрын
hello big brother what is the difference between jwt token vs express-session ?
@as_if8 ай бұрын
4:30 difference between this token and the UID
@mma-dost Жыл бұрын
Great video bhaiya there is something csrf is jwt secure with that hack ?
@piyushgargdev Жыл бұрын
Added to my list, will surely make a video on it
@pankaj8876 Жыл бұрын
Great explanation! 👌
@amrExplore Жыл бұрын
Very nicely explained Piyush. ! question though, in case of refresh token does the secret on the server changes since the payload information would remain the same ? Wonderful JWT explnation
@deepanshuaggarwal5181 Жыл бұрын
how on changing payload with wrong email and right secret key, we logged in at 10:40
@Ayush3726211 ай бұрын
Did you got the answer?? I think maybe because we have already entered the correct email and password in the beginning...
@ayushacharya47784 күн бұрын
For that you need to know how jwt is verified. Header and payload part are taken and they are hashed with secret key to get a signature. First part of token is header, second is payload and third is the signature that i described how it comes. Verification(jwt.verify(token,secret): The header, payload and the secret are hashed and we get a new signature. If the new signature matches with the one we received from the third part of token(received signature) then the token is verified and user is authorized. Even if the email was changed, the newly generated token was valid. We extracted user id and So we logged in at 10:40
@mubasshirkhan137011 ай бұрын
Thank you bhai...... ❤🧡💛💚
@ibntofajjal Жыл бұрын
Keep Going Bro. You Doing Well
@seemakhan-jx8lp2 ай бұрын
Assalamo Alikum Sir Sir kiya asa office hai jo urdu mai interview ly our office waly urdu bholy muje typescript react javascript and node.js and exprees ati sirf language ka issues hai english ki samj ati par mai bol nhi sakti
@ctet5470 Жыл бұрын
Where we are calling getUser function?
@bm9code Жыл бұрын
this is only video in which i saw that the use secret key in jwt ♥ thanks ♥
@100DDC Жыл бұрын
wow, awesome bro
@ShashankGrade-xk9dc4 ай бұрын
when i replace my token with wrong one the app remain run
@pallabdandapat18667 ай бұрын
sir getting the below error : C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\jsonwebtoken\verify.js:70 return done(new JsonWebTokenError('jwt malformed')); ^ JsonWebTokenError: jwt malformed at module.exports [as verify] (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\jsonwebtoken\verify.js:70:17) at getUser (C:\Users\palla\Downloads\short-url-node\short-url-node\service\auth.js:13:16) at checkAuth (C:\Users\palla\Downloads\short-url-node\short-url-node\middlewares\auth.js:15:18) at Layer.handle [as handle_request] (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\layer.js:95:5) at trim_prefix (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\index.js:328:13) at C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\index.js:286:9 at Function.process_params (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\index.js:346:12) at next (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\index.js:280:10) at cookieParser (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\cookie-parser\index.js:71:5) at Layer.handle [as handle_request] (C:\Users\palla\Downloads\short-url-node\short-url-node ode_modules\express\lib outer\layer.js:95:5) Node.js v20.6.1 [nodemon] app crashed - waiting for file changes before starting...
@pratyushpragyey70027 ай бұрын
function getUser(token){ if(!token) return null; try { return jwt.verify(token ,secret); } catch (error) { return null; } } use this function instead of what you've written
@pallabdandapat18667 ай бұрын
@@pratyushpragyey7002 yes sir , i have done the same thing , thank you.
@mayanksinha18837 ай бұрын
@@pratyushpragyey7002 thanks mannn
@lovelymusic3549 Жыл бұрын
Sir when you are starting a complete react JS course basic to advance any idea sir?
@vijenderkumar3034 Жыл бұрын
Nice video
@avfitnes964 ай бұрын
Thx sir❤❤
@sourabhgarg28903 ай бұрын
bro u teaching backend or hacking?
@codingwave56 Жыл бұрын
Hmne Information (Object) ko JWT ki madad se bina Secret key bhi generate kar diya to ye secret key kiss kam ki? Plz Reply Sir...
@utube6044 Жыл бұрын
kaha pe?
@varunchakraborty602011 ай бұрын
I don't know if you got the soln or no, but Secret key token me changes krne ke liye h n ki use read krne ke liye
@codingwave5611 ай бұрын
@@varunchakraborty6020 Yes, Got it 👍🏻 Thanks
@utube604411 ай бұрын
@@varunchakraborty6020 matlab ki dekhne k liye ki ye token meri secret key se bana hai ki nai?
@varunchakraborty602011 ай бұрын
@@utube6044 hn mtlb agr kisi aur ne changes krdiya token me, to mai verify krskta hu, ki final token mere secret key se bni h ya nhi
but somewone steal the cookie and try to login in their system can we stop this
@Atul_Thakre302 ай бұрын
That's why it is not a good way
@iamakashkumarram Жыл бұрын
JWT Authentication basic to Advance full cover karado sir.
@satyam94163 Жыл бұрын
yes plz
@piyushgargdev Жыл бұрын
Okay sure
@najmulhasan5997 Жыл бұрын
thanks
@Royal18256 күн бұрын
Great
@abhayyraz5 ай бұрын
Too Good
@mromkar53662 ай бұрын
jwt malformed how to solve
@AtharvJoshi-jc7ow6 ай бұрын
then why the heck IRCTC uses session😂 it loggs you out at the last second of your attempt to book tatkal ticket💩
@anandshete91706 ай бұрын
bhai ham agar hot to ham khud hi acche khase website bana lete yarr inko kon bataye abb saste saste developers use kiye hai inhone
@20_omkar_kadu57 Жыл бұрын
jwt itma hi hota he ya aur bhi kuch he
@mdebrahim2164 Жыл бұрын
helpfull
@dhruvbandi6633 Жыл бұрын
bro where is the code
@MrBlazzerBoy11 ай бұрын
Please mention it's Hindi in title.
@sudhanshugautam425 Жыл бұрын
let say you want to make this project open source, but in the backend itself you shared the secret key and using that anyone can get make fake token????
@Ayush3726211 ай бұрын
I think we will store the secret key in the .env file
@ChandransuSekharSatapathy8 ай бұрын
someone has its source code
@rishabhraj8233 Жыл бұрын
hey I am here on 1st jan anybody else?
@nithenbains5 ай бұрын
explaination is top-notch but appke voice tone like a little child is speaks
@hetpatel9503 Жыл бұрын
👌
@chrisjordan58495 ай бұрын
Sir ji ek hi video me pura samjha diya karo na bar bar ja ke dusri video pehle dekho
@ShivendraPratap524 Жыл бұрын
What next?????
@piyushgargdev Жыл бұрын
We will cover advance concepts while building projects, No video for today!
@ShivendraPratap524 Жыл бұрын
@@piyushgargdev matlab ab projects hi projects ayenge
@ShivendraPratap524 Жыл бұрын
One more request react ke sath integrate karle bhi ek project, fir chain se jinda rahenge
@ShivendraPratap524 Жыл бұрын
@@piyushgargdev aur haa videos ki continuity yahi rakhiyega sir
@hemobhai111 ай бұрын
Ek hi video me bana diya Karo na warna bataya hi mat karo pahle ye dekho tab wo dekho aadmi yaha sikhne aata hai ki tumlog ka views badhane
@mujibulhaquetanim10 ай бұрын
Bhai, have some patience. it is not a paid course.
@Flux-e4y10 ай бұрын
same bro mujhe bhi bhout gussa aata hai
@proudtobeindian279 ай бұрын
Bhai mat aaya kar ehsaan na kar us par, ek to free main pada ra upar se tu attitude dikha ra, scroll kar aur dusare ko dekh na
@shivajikapale23368 ай бұрын
Bhai bahut badiya padha raha hai banda free mai... Pura videos dekho nahi to kuch mat dekho
@quick-bytes8 ай бұрын
Separate video better hai warna bohot long ho jata woh video na itna tum ya koi bhi samaj kr digest kr pata atleast iska part 1 video khtm hua hoga tb logo ne practice krne ka try kra hoga Netflix pr binge watch krne nahi aaye ho sikhne aaye ho tum yaha pr 🙂