Register and login a user with JWT token

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2022
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdotcom
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Ekdam easily understand sir ...

  • @riya1703
    @riya1703 6 หลายเดือนก่อน

    Great explanation... I really love to learn from your videos... Sir can you please make a content on Nestjs😊

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

    Thankyou 🙏, Great explanation

  • @ruhulmirza6197
    @ruhulmirza6197 6 หลายเดือนก่อน

    Can I take data from my React form into my personal gmail id without using any librariies like email.js elastic email etc.

  • @Nitin.0202
    @Nitin.0202 10 หลายเดือนก่อน

    Best video every I have seen 😊

  • @anubhavseet004
    @anubhavseet004 2 หลายเดือนก่อน

    Sir again iam here to learn authentication

  • @Overlord_Ainz348
    @Overlord_Ainz348 7 หลายเดือนก่อน +1

    Sir, can't we just use passport for this

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

    Sir, completed HTML CSS, JAVASCRIPT, REACTJS,MERN STACK COURSE all by you but as I'm a fresher and don't have a btech degree,how do i find a job? Cause most ppl won't give a chance to a non btech fresher. So any tips on what I should do next and how do i get my first job and gain experience ?

    • @sharcodes
      @sharcodes 4 หลายเดือนก่อน

      I hope you must have got by now.
      If not create some good project which solved real life problem and bring some user to use that...

  • @chandankumar-ul5to
    @chandankumar-ul5to ปีที่แล้ว +4

    Ctrl + Tab - move forward in browser @1:39
    Ctrl + Sh + Tab - Move Backward
    a small contribution in this video 😄

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

    Pls , do more videos on this sir
    some how difficult to understand JWT

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

    Thank you sir ❤️

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

    Excellent👍 thank you

  • @pixiedev
    @pixiedev ปีที่แล้ว +6

    I don't use cookie-parser I use just a method of 5-6 of code which provided by django docs. And it's sufficient 😅.

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

      How do you handle security ?then ? what if someone stoles your token ?

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

      @@GoutamReddydazz it is in cookie

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

      @@GoutamReddydazz encode it with base64 or SHA256

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

      @@pixiedev so you are saying by doing those we can secure application from CSRF

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

    have a doubt..... does user.token=token won't store token into the DB ?

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

    I am facing one problem the cookie is stored if I make request using postman but in browser it's not getting stored in cookies

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

    ctrl +tab - move to forward tab.
    ctrl+shft+tab - move to backward tab.

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

    here's the shortcut : (ctrl + tab) to switch tabs

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

    thanks

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

    is it important to create jwt token both time while we are registering and login? is this create different token both time ?

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

      yes! it create or overwrite the new one if you save the user.token = jwt made while log in

  • @najmulhasan5997
    @najmulhasan5997 7 หลายเดือนก่อน

    where is source code?

  • @Nitin.0202
    @Nitin.0202 10 หลายเดือนก่อน

    ✅👍🏻❤

  • @good114
    @good114 5 หลายเดือนก่อน

    🙏🙏❤❤

  • @cartoonkid5584
    @cartoonkid5584 7 หลายเดือนก่อน

    chai and code

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

    😅😂

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

    Use argon2 which is better than bcryptjs for modern world