PERN authentication full course (backend)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 41

  • @johnkamau3442
    @johnkamau3442 2 ปีที่แล้ว +8

    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

  • @oscarfelix7244
    @oscarfelix7244 2 ปีที่แล้ว +3

    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!

  • @melissatermin5551
    @melissatermin5551 2 ปีที่แล้ว +7

    Amazing tutorial, it is hard to find PERN tutorial video like this !

  • @Glebtc
    @Glebtc ปีที่แล้ว +4

    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.

  • @somtoobienu5081
    @somtoobienu5081 ปีที่แล้ว +1

    Thank you so much for this tutorial. You are a great teacher and a life saver. I am grateful. Keep it up

  • @claytorresgaming7212
    @claytorresgaming7212 ปีที่แล้ว +1

    Thank you for this video! Now unto the client side! Cheers! 🍻

  • @zacharygunning
    @zacharygunning ปีที่แล้ว

    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!!

  • @zscoder
    @zscoder 9 หลายเดือนก่อน

    We need more PERN in our life cheers 🙌🏻

  • @Anarchy_OW
    @Anarchy_OW ปีที่แล้ว +3

    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.

  • @devworks8787
    @devworks8787 ปีที่แล้ว

    One of the best tutorials I was looking for. Subbed!

  • @BukkyOdunsi
    @BukkyOdunsi 11 หลายเดือนก่อน

    I'd follow you to the end of the world for this tutorial 🎉❤

  • @shannonm4812
    @shannonm4812 2 ปีที่แล้ว +3

    No matter what I do, I cannot get the protected route to authorize. I’ve tried everything!! Is anyone else having this problem?

    • @donal-milesgyasi6256
      @donal-milesgyasi6256 ปีที่แล้ว

      same problem here..did you manage to fix yours?

    • @Glebtc
      @Glebtc ปีที่แล้ว

      Hi, I basically changed all the instances of id to user_id in the controller files as well as authorization middleware, hope it helps

  • @GameVerse215
    @GameVerse215 ปีที่แล้ว

    are you going make video on postgres sequelize and react ... fullstack...
    ?

  • @stevenmelendez6683
    @stevenmelendez6683 ปีที่แล้ว

    eres el mejor, explicas muy bien.

  • @iot_in
    @iot_in ปีที่แล้ว

    Really a helpful one ! Thanks a lot

  • @leilaaitabdellah3432
    @leilaaitabdellah3432 2 ปีที่แล้ว +1

    Hi sir, i'm getting always the same error for all routes: Cannot GET /api
    Do you have any idea about the possible reason ?

    • @mikedev4673
      @mikedev4673  2 ปีที่แล้ว

      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.

  • @nickss998
    @nickss998 2 ปีที่แล้ว +1

    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
      @mikedev4673  2 ปีที่แล้ว +1

      I will make a more modern video about it and hopefully include refresh tokens, there will be also integration with Prisma ORM and more.

    • @nickss998
      @nickss998 2 ปีที่แล้ว

      @@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 !

    • @mikedev4673
      @mikedev4673  2 ปีที่แล้ว +1

      @@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"

  • @ConquerJS
    @ConquerJS 3 ปีที่แล้ว +5

    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.

    • @mikedev4673
      @mikedev4673  3 ปีที่แล้ว +5

      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.

  • @nuraitzhan3957
    @nuraitzhan3957 2 ปีที่แล้ว

    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?

  • @muhammadharis-lo9nv
    @muhammadharis-lo9nv 2 ปีที่แล้ว

    Hi sir why there is no model in here what is architecture u use in this programming

    • @mikedev4673
      @mikedev4673  2 ปีที่แล้ว +2

      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.

    • @muhammadharis-lo9nv
      @muhammadharis-lo9nv 2 ปีที่แล้ว

      @@mikedev4673 ohh yes sir thank you🙂 i mean what pattern you use? , is this MVC pattern ?

    • @mikedev4673
      @mikedev4673  2 ปีที่แล้ว

      @@muhammadharis-lo9nv yes

  • @aviworking4823
    @aviworking4823 2 ปีที่แล้ว +2

    great work..

  • @bijayagiri5746
    @bijayagiri5746 ปีที่แล้ว

    hello sir...waiting for front end side solution as well.

    • @mikedev4673
      @mikedev4673  ปีที่แล้ว +2

      Hello, check out the channel it is posted already.

  • @xthematroix2515
    @xthematroix2515 2 ปีที่แล้ว

    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?

    • @mikedev4673
      @mikedev4673  2 ปีที่แล้ว

      Hi you can’t copy the password from db because it is hashed, you have to use the regular password you created.

  • @marcoojeda7678
    @marcoojeda7678 2 ปีที่แล้ว +2

    Excelente..!

  • @johnhsieh5118
    @johnhsieh5118 2 ปีที่แล้ว

    如果有提供中文字幕就更棒了.

  • @jalamangjanka3324
    @jalamangjanka3324 2 ปีที่แล้ว

    Great job

  • @ahmad-elshowair
    @ahmad-elshowair ปีที่แล้ว +2

    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