How to handle authentication in React using JWT & Cookies | Hooks. Best To Do List App #14.

Поделиться
HTML-код
  • Опубликовано: 7 мар 2020
  • In this important episode of the Best to do list tutorial, I am going to walk you through jwt authentication in our react application. We will be using js-cookie to create jwt token cookie and jwt-decode to decode the token to get the currently logged in user. If you find this useful, don't forget to like, comment and subscribe.
    Source Code: github.com/dieudonneAwa/todo/...
    👇👇👇SUBSCRIBE TO THE CHANNEL 👇👇👇👇
    / @fullstackmastery
    OTHER VIDEOS YOU MIGHT LIKE👇👇
    - How to Setup React app from SCRATCH: • How to setup React app...
    - How to create a responsive hamburger navigation menu: • Responsive Hamburger m...
    - JWT authentication in Reactjs using Cookies: • How to handle authenti...
    - How to render a list of todo objects in Reactjs: • How to Render an array...
    - Form validation with React hooks: • Sign up form validatio...
    - How to setup sequelize and postgres: • How to setup Sequelize...
    - Password Reset using SendGrid: • Password Reset using S...
    - CRUD Operations with sequelize: • CRUD operations with S...
    - How to create sequelize migrations and associations: • Create Sequelize Migra...
    - NodeJS Authentication with JWT: • Implement Authenticati...
    HELPFUL RESOURCES
    Certified ScrumMaster Training: Get $200 off Today! Use this code SCRUM200
    click.linksynergy.com/fs-bin/...
    $2,760 in Savings: Premium PMP Exam Prep Boot Camp! Get everything you need to pass & enhance your skills
    click.linksynergy.com/fs-bin/...
    Follow FullStack Mastery on Twitter: FullstackValley?s=09
    Follow FullStack Mastery on Facebook: lm. l.php?u=https...
  • НаукаНаука

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

  • @fullstackmastery
    @fullstackmastery  3 года назад

    I recently released a tutorial for adding Google OAuth to a React/Next.js, Node/express, and Postgres/Sequelize application.
    Check it out, I'm sure you will find it helpful.
    ruclips.net/video/RkWPDBPkjXs/видео.html

  • @rupenderfox
    @rupenderfox 4 года назад +1

    Well this would be a great time to start tackling this tutorial since we are all in self-quarantine during Coronavirus. Hope you are well and healthy FullStack Valley, and also hope that you continue this series!

    • @fullstackmastery
      @fullstackmastery  4 года назад

      I am very fine @Big Rup
      I will upload this weekend.

  • @fauzi7650
    @fauzi7650 3 года назад

    if i set cookies jwt to httpOnly, how do i call it ?

    • @fullstackmastery
      @fullstackmastery  3 года назад +1

      Can you be more specific please? I don't really understand what you mean.

    • @fauzi7650
      @fauzi7650 3 года назад

      @@fullstackmastery How do I get the json web token which I have stored in the cookie and I set httpOnly to true? I've tried Cookies.get ('name') but it didn't work, but if I set httpOnly to false it works

    • @fullstackmastery
      @fullstackmastery  3 года назад +1

      @@fauzi7650 I haven't really used httpOnly before. So why would you want to set a value for HttpOnly? What is your use case here?

    • @fauzi7650
      @fauzi7650 3 года назад

      @@fullstackmastery I don't know, I just learned React for about 1 month, and I just wanted to find the best way to save JWT ... thank you very much for taking the time to answer my question

    • @fullstackmastery
      @fullstackmastery  3 года назад +1

      @@fauzi7650 You're very welcome anytime