PERN authentication full course (backend)

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • Frontend video:
    • PERN authentication fu...
    link to the github code:
    github.com/mic...

Комментарии • 41

  • @melissatermin5551
    @melissatermin5551 2 года назад +7

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

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

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

  • @devworks8787
    @devworks8787 Год назад

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

  • @claytorresgaming7212
    @claytorresgaming7212 10 месяцев назад +1

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

  • @zscoder
    @zscoder 7 месяцев назад

    We need more PERN in our life cheers 🙌🏻

  • @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.

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

  • @Anarchy_OW
    @Anarchy_OW Год назад +2

    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.

  • @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 11 месяцев назад

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

  • @stevenmelendez6683
    @stevenmelendez6683 11 месяцев назад

    eres el mejor, explicas muy bien.

  • @BukkyOdunsi
    @BukkyOdunsi 9 месяцев назад

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

  • @iot_in
    @iot_in Год назад

    Really a helpful one ! Thanks a lot

  • @aviworking4823
    @aviworking4823 2 года назад +2

    great work..

  • @nuraitzhan3957
    @nuraitzhan3957 Год назад

    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?

  • @marcoojeda7678
    @marcoojeda7678 2 года назад +2

    Excelente..!

  • @ConquerJS
    @ConquerJS 2 года назад +4

    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 RUclips 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  2 года назад +4

      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.

  • @nickss998
    @nickss998 2 года назад

    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"

  • @leilaaitabdellah3432
    @leilaaitabdellah3432 2 года назад

    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.

  • @bijayagiri5746
    @bijayagiri5746 Год назад

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

    • @mikedev4673
      @mikedev4673  Год назад +2

      Hello, check out the channel it is posted already.

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

  • @jalamangjanka3324
    @jalamangjanka3324 2 года назад

    Great job

  • @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.

  • @johnhsieh5118
    @johnhsieh5118 2 года назад

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

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