React js project # Login with API

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

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

  • @Ezzgamezzz
    @Ezzgamezzz 4 дня назад +1

    Really helpful 😃👍🏻

  • @HasanHayder
    @HasanHayder 8 месяцев назад +1

    great video thank you

  • @kavithamadhu4983
    @kavithamadhu4983 8 месяцев назад

    easy to understand..thankyou

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

    This is why simplicity matters

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

    That is a good one.

  • @ImranKhan-hl7qp
    @ImranKhan-hl7qp Год назад +4

    On refreshing the page, it is redirecting to the login page.
    Solutions:::
    result = await result.json()
    if(result.error)
    {
    alert(result.error)
    }
    else
    {
    localStorage.setItem('user-info',JSON.stringify(result))
    navigate("/add")
    }

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

    Thank you very much for this video!

  • @DataVisualizationswithVizARTGr

    cool

  • @rabinsubedi5602
    @rabinsubedi5602 3 года назад +6

    Can you make a video on multiple user like admin and user login system with one login form

  • @Huzaifa_Hussain
    @Huzaifa_Hussain Месяц назад

    thanks bro

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

    i will forever love you

  • @soniclickadbox8646
    @soniclickadbox8646 3 года назад +2

    very nice tutorial well explained , Sir please give a tutorial on when we hit a url direct it does not work while we go with menu it works.

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

    believe me its very simple way to login.

  • @bhakti.sangeet.officials
    @bhakti.sangeet.officials 2 года назад +1

    Line 13:6: React Hook useEffect has a missing dependency: 'history'. Either include it or remove the dependency array react-hooks/exhaustive-deps
    webpack compiled with 1 warning
    solution this error ??????

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

      Did you find the solution? I am getting the same error.

    • @xalerion6996
      @xalerion6996 2 года назад +1

      @@enessenturk8237 useHistory is outdated, look for useNavigate at router documentation

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

      @@xalerion6996 thank you so much.

  • @shashank_rajak
    @shashank_rajak 3 года назад +11

    All the devs teaching people to use local storage for authentication are doing a serious crime actually. It’s not at all a good practice to do authentication with local storage as the ultimate source of truth, especially user info.

    • @shashank_rajak
      @shashank_rajak 3 года назад +6

      Even on Udemy, folks are teaching to use local storage to check a user authenticity. But, anyone can put a token in local storage and when the page reloads it will find a token and get user logged in. I don’t know why everyone just tells the same way of authentication.

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

      @@shashank_rajak do you have a better idea not to store token on local storage, if you have can you share?

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

      The main reason for not using local storage as for keeping the token is its security, as you may know all the js on the page has access to the local storage, and if one of them is just vulnerable to for example XSS, they can access the local storage, and send it to the attacker. best practices suggest to use cookies for keeping tokens (jwt etc), and the cookie must be set with HttpOnly flag, these kind of cookies are not accessible by the JS on the page, the browser blocks js to access them, and they will be sent to the backend on every http request.

  • @KP-Kumar
    @KP-Kumar 5 месяцев назад

    Thanks❤

  • @cpimenteldev
    @cpimenteldev 3 года назад +2

    Hi bro, you can put repo? thanks!

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

    When i put condition on {login} then it shows this :- JSX props should not use functions.
    So i use function method so what should do and what are the solution for this..!!!

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

    if we are refreshing the page, it is redirecting to the login page again, how to stay on the main dashboard until we press the logout button ?

  • @DullJoker
    @DullJoker 3 года назад +10

    Good tutorial, honestly had some trouble understanding your speech due to your accent but after a couple of minutes it was alright alright alright :D

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

    Hey! There is no validation in the frontend! If I hit the LOGIN with empty fields, or with unregistered details, I still can access Add product page etc...You need to check Laravel backend Api response in frontend javascript code!!!!!!!!!!

  • @satishksharma
    @satishksharma 2 года назад +1

    How to prevent CSS & CSRF attacks with react and laravel

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

    Im used this method it shows CORS policy: No Access Control Allow Origin error. How to solve that ...pls help??

  • @manikandana.m3068
    @manikandana.m3068 3 года назад +1

    Is it correct to hit the login request from client side so that password can be seen in api request. Is there some other way for not to expose an login request from client side

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

    How to Display User detail
    and wrong detail Error show..
    help me

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

    In html file do i need to specify anything apart from script tag by following URL of js file

  • @Sweety-o7q
    @Sweety-o7q 14 дней назад

    How to make signin page and login page work together

  • @engr.raudahmed4730
    @engr.raudahmed4730 3 года назад +1

    need display password or email does not match message or which return api

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

    why didnt u show what's in Header file brother ;(

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

    for me, the login works like a hit or miss. sometimes it works and sometimes it just refreshes the page. Has anyone got a clue what's going on?

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

      maybe you should prevent the default

  • @a-23-roushansingh14
    @a-23-roushansingh14 2 года назад

    were is the github repository for the same??

  • @tapanbhanot
    @tapanbhanot 3 года назад +12

    Where is the api code and db ???

    • @suhasgardare4833
      @suhasgardare4833 10 месяцев назад

      Inside description you can see whole playlist... 👍

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

    Hai bro I'm Ganesh How to take Dummy API for Login page AUthentication Purpose

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

    Don't store users info in local storage.

  • @xyzchannelindia
    @xyzchannelindia 3 года назад +3

    Code pura sir chahiye

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

    How to catch the error in this login
    If the user provide wrong password than

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

    Goterror while using await how to solve it Unexpected reserved word 'await'.

  • @miketayo
    @miketayo 3 года назад +2

    the log-in works even when wrong data are passed. it should only allow authenticated users to login

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

      You need to authenticate it in backend. If you want, there are plenty of tutorials available

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

      @@DesiMatrixXD but how to make the server remember every authenticated user?

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

      @@jakjun4077 database

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

      ​@@DesiMatrixXD i am still having doubt that if the user is authenticate successfully, the particular information will be return from database and store inside a local Storage or cookies, but some said these method might introduce Cross-Site attack or forgery, do u have any idea? let say i am implementing the system using flask as api, and react as the frontend and request information one.

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

      btw, i am still new to this area, so basically what u means is storing the token in database and making it expires after a certain period?
      ps: because there are too many ways to do it.

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

    How to restrict back button after login i need to restrict after login cannot be reverse from dashboard to login

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

    I added wrong information it still login

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

    how you have routed the files ?

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

    Hi can share the source code of Reactjs

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

    hi broo I got one error which that Without input also it going to dashboard

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

    what is that "/add" ? is it is component name ?

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

    What is in the header.js file

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

    Hey ,how to hide key and password

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

    useHistory??

  • @AKvLogs-gb3cu
    @AKvLogs-gb3cu 3 года назад +1

    Bro react native main bhi signup and login pr video bnayn

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

    Let me jump on code....and code is already have useEffect hook . why u take that not explain at all in the video u should have to explaine it

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

    Hi Sir, can u pls provide the link url for this entire project series.. not able to find out

    • @msn.muddam
      @msn.muddam 3 года назад +1

      Hi Gopal, did you figure out from where the project was?

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

    can you send me git repository to download

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

    can you provide the source code

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

    sir api kaise create kare

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

    can u send code?

  • @Armankhan-jy4eb
    @Armankhan-jy4eb 3 года назад

    forgot password ka video ayega kya is project mein ??

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

    Can you provide me login back end code

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

    Sir ye Sara chiz Ka shuruaat Kaha se hai... Is wale project Ka ... Please sir bata do

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

      Matlab is video me login samjhaya hai Apne toh shuru Kaha se Kia hai isko... Sign-up aur ye sab Kaha se hai shuru

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

    Where is app.js....not showing app.js ....mental

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

    no God except allah

  • @RR-le7wd
    @RR-le7wd 3 года назад

    bro i need code for this video

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

    bhai apna english improve kar, it's too much irritating while u make simple grammatical mistakes in the sentences.