Lots and lots of thanks for this tutorial, the only complete I have found online regarding this topic, very well explained with no errors, I am grateful for your work sir
This was a great tutorial. Easy to follow and straight to the point. I really really like your teaching style and how you have the workflow written out. Excellent video sir. I learned a lot! Thank you!
For people experiencing "Error: Unknown authentication strategy "jwt"" error: I have basically eliminated the auth-middleware file and have added the following line to the passport-middleware file: exports.userAuth = passport.authenticate('jwt', { session: false }) You now have to change the import in the /routes/auth.js and it should work.
I'm a little late to the game but wanted to post that this was an amazing video ('Likes' all around)! I also learned a lot and looking forward to the companion video. Thank you!!
Very good info and I honestly appreciate your time for doing this. I would have personally enjoyed it if you walked through the code more in detail and not copy & paste. I had to do a lot of side research to understand topics that were breezed by a little too fast. Other than that it was great, defiantly a very condensed and solid tutorial.
Where are you trying to access the route? If i remember there is no /api route so you should define what route you need, also make sure the server is running. Not sure what you trying to do so please explain in more details.
Hi, Mike ! I need to add both a access token and a refresh token for this app. Can you point me out how to do this (i'm not that experienced) ? Your help will be very apreciated !! Thanks!
@@mikedev4673 Thanks ! But my project due date will be very soon sadly :( Any chance of the video in 1 week or 2 ? If you have the time just to explain where/how to implement the acces token maybe I can give it a go myself. Have a great day !
@@nickss998 You can try to search info on google I have found some articles maybe try to use this one dev.to/cyberwolve/jwt-authentication-with-access-tokens-refresh-tokens-in-node-js-5aa9 if it is not helping try to search "JWT Authentication with Access Tokens & Refresh Tokens In Node JS"
This was a great tutorial, but jsut some friendly advice: it's too early for you to only make videos if you have enough likes. You should assume you will get 0 likes, and keep putting out content until it starts to get picked up by the TH-cam Algorithm and you get viewers. Right now all I see is an unfinished tutorial from half a year ago so I must assume you will never make the client side tutorial and just like that - you missed a subscriber. Meanwhile if you had done both and put them up, you would have one of the only PERN stack authentication tutorials on youtube and would get a lot of views. A few years back I saw there weren't videos on how to use webdriver with javascript so I made a bunch of videos and it's become the most viewed on the subject.
yes you're right thank you for the tip, I wanted to create the frontend video anyways just had some busy period working full time job and creating side projects, I hope to actually continue with my channel soon because teaching is something I really enjoy and don't want to give up on that.
I hope that I understood the question, if you mean why there is no schema modal is because I did not use any ORM for this project. You can see the project is just raw SQL.
Hi there I have tried to find out why I'm getting the following error but nothing knocking my head Error: Unknown authentication strategy "jwt" I will be glad if you can give me any clue
Lots and lots of thanks for this tutorial, the only complete I have found online regarding this topic, very well explained with no errors, I am grateful for your work sir
This was a great tutorial. Easy to follow and straight to the point. I really really like your teaching style and how you have the workflow written out. Excellent video sir. I learned a lot! Thank you!
Amazing tutorial, it is hard to find PERN tutorial video like this !
For people experiencing "Error: Unknown authentication strategy "jwt"" error:
I have basically eliminated the auth-middleware file and have added the following line to the passport-middleware file:
exports.userAuth = passport.authenticate('jwt', { session: false })
You now have to change the import in the /routes/auth.js and it should work.
My hero!
Thank you so much for this tutorial. You are a great teacher and a life saver. I am grateful. Keep it up
Thank you for this video! Now unto the client side! Cheers! 🍻
I'm a little late to the game but wanted to post that this was an amazing video ('Likes' all around)! I also learned a lot and looking forward to the companion video. Thank you!!
We need more PERN in our life cheers 🙌🏻
Very good info and I honestly appreciate your time for doing this. I would have personally enjoyed it if you walked through the code more in detail and not copy & paste. I had to do a lot of side research to understand topics that were breezed by a little too fast.
Other than that it was great, defiantly a very condensed and solid tutorial.
One of the best tutorials I was looking for. Subbed!
I'd follow you to the end of the world for this tutorial 🎉❤
No matter what I do, I cannot get the protected route to authorize. I’ve tried everything!! Is anyone else having this problem?
same problem here..did you manage to fix yours?
Hi, I basically changed all the instances of id to user_id in the controller files as well as authorization middleware, hope it helps
are you going make video on postgres sequelize and react ... fullstack...
?
eres el mejor, explicas muy bien.
Really a helpful one ! Thanks a lot
Hi sir, i'm getting always the same error for all routes: Cannot GET /api
Do you have any idea about the possible reason ?
Where are you trying to access the route? If i remember there is no /api route so you should define what route you need, also make sure the server is running. Not sure what you trying to do so please explain in more details.
Hi, Mike ! I need to add both a access token and a refresh token for this app. Can you point me out how to do this (i'm not that experienced) ? Your help will be very apreciated !! Thanks!
I will make a more modern video about it and hopefully include refresh tokens, there will be also integration with Prisma ORM and more.
@@mikedev4673 Thanks ! But my project due date will be very soon sadly :( Any chance of the video in 1 week or 2 ? If you have the time just to explain where/how to implement the acces token maybe I can give it a go myself. Have a great day !
@@nickss998 You can try to search info on google I have found some articles maybe try to use this one dev.to/cyberwolve/jwt-authentication-with-access-tokens-refresh-tokens-in-node-js-5aa9 if it is not helping try to search "JWT Authentication with Access Tokens & Refresh Tokens In Node JS"
This was a great tutorial, but jsut some friendly advice: it's too early for you to only make videos if you have enough likes. You should assume you will get 0 likes, and keep putting out content until it starts to get picked up by the TH-cam Algorithm and you get viewers.
Right now all I see is an unfinished tutorial from half a year ago so I must assume you will never make the client side tutorial and just like that - you missed a subscriber. Meanwhile if you had done both and put them up, you would have one of the only PERN stack authentication tutorials on youtube and would get a lot of views.
A few years back I saw there weren't videos on how to use webdriver with javascript so I made a bunch of videos and it's become the most viewed on the subject.
yes you're right thank you for the tip, I wanted to create the frontend video anyways just had some busy period working full time job and creating side projects, I hope to actually continue with my channel soon because teaching is something I really enjoy and don't want to give up on that.
Hi Mike, why when i do -> if (!validPassword){ throw new Error('Wrong password.');} I don't receive printed errors in my postman, only in console.log?
Hi sir why there is no model in here what is architecture u use in this programming
I hope that I understood the question, if you mean why there is no schema modal is because I did not use any ORM for this project. You can see the project is just raw SQL.
@@mikedev4673 ohh yes sir thank you🙂 i mean what pattern you use? , is this MVC pattern ?
@@muhammadharis-lo9nv yes
great work..
hello sir...waiting for front end side solution as well.
Hello, check out the channel it is posted already.
When I try to login, i get the message that the Password is incorrect. But I copied it from the DB so it has to be correct. Anybody can help me?
Hi you can’t copy the password from db because it is hashed, you have to use the regular password you created.
Excelente..!
如果有提供中文字幕就更棒了.
Great job
Hi there
I have tried to find out why I'm getting the following error but nothing knocking my head
Error: Unknown authentication strategy "jwt"
I will be glad if you can give me any clue