Add Login/Auth to your React app in 5 mins

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

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

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

    🎉Our Newsletter is live! Join thousands of other developers
    islemmaboud.com/join-newsletter

  • @FreeCodingWorld
    @FreeCodingWorld 8 месяцев назад +85

    title says 5 mins, but the duration of the video is 13+ mins💀💀💀

    • @jacobmoore8734
      @jacobmoore8734 7 месяцев назад +1

      Which is funny cuz he's using a framework to speed up & simplify authentication

  • @reyaustineechavez9600
    @reyaustineechavez9600 Год назад +22

    Hi Bro, thanks for the tutorial, I'm just wondering if you could do an extended tutorial on how to setup access levels or user roles?

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

    thank you very much .. easy and straighforward ...!!

  • @sangwaemmanuel6936
    @sangwaemmanuel6936 Год назад +1

    Helped me to go around React authentication with my Spring Boot App, it worked like a charm

  • @DenzelLawrence-eq2xv
    @DenzelLawrence-eq2xv 4 месяца назад

    This was helpful but can you do the same video using react with JavaScript+SWC?

  • @stonecomstock
    @stonecomstock Год назад +8

    This is extremely helpful. Thank you so much!

  • @sangwaemmanuel6936
    @sangwaemmanuel6936 Год назад +1

    Thank you man, you gave just basics and gave them well

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

    Very nice and hjelpfull tutorial, thanks. but i would like to now what vsc color theme you are using. could you tell me some extensions you are using? couse i like it. thnaks in again.

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

      The theme is halcyon. Thanks ^^

  • @brunofilgueiras3518
    @brunofilgueiras3518 Год назад +3

    thanks Islem, this was very useful, doing that manually can be a pain, I'll be considering using this lib as a solution for handling authentication, cheers.

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

    That's not working for me ...
    It says babel pacakges error. And when running this with a project using SWC instead of babel, it totally break my app ...

  • @alessandrofoglia4581
    @alessandrofoglia4581 Год назад +1

    Can you make a refresh token video on this library?

  • @Chmelewsky
    @Chmelewsky Год назад +5

    glad i'm not the only one who refers to auth as creepy stuff 🤣

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

    getting error "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."

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

    im getting an error: annot update a component (`AuthProvider`) can you please help me?

  • @Ronaldo7TFM
    @Ronaldo7TFM Год назад +1

    I get an infinite loop after SignOut or go to Private Routes

  • @nabinsaud4688
    @nabinsaud4688 2 года назад +6

    Please also provide the link of api used in this video

    • @pdxshadow9819
      @pdxshadow9819 6 месяцев назад

      He literally did in the description. Also used Yarn…

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

    Thanks for this video

  • @RomanKulyk-m9n
    @RomanKulyk-m9n Год назад

    If I need to be authorized in multiple subdomains and on a domain, is this possible with your library?

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

    i'm getting this message Module '"react-auth-kit"' has no exported member 'AuthProvider'. Did you mean to use 'import AuthProvider from "react-auth-kit"' instead

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

      oh nevermind, I saw an issue in the docs saying I need to install react-auth-kit@2.12.7 instead

    • @nadeemr1070
      @nadeemr1070 11 месяцев назад +1

      @@unmye yes it fixed my error too.

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

      ​@@unmye thanks for this comment, it fixed my error

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

    Thanks a lot mate. You have saved a lot time

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

    great vid. helped me alot

  • @VinayThool
    @VinayThool 10 месяцев назад +2

    Hi i am getting following error.
    Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
    react-dom.development.js:28439 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
    App.js



    } />

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

      have you solved this error?im getting the same

    • @createnewthings2024
      @createnewthings2024 6 месяцев назад

      @@sudekarakus same error for me
      have you resolved this

    • @ajaykathait7633
      @ajaykathait7633 6 месяцев назад

      me too

  • @tonmoytalukder4232
    @tonmoytalukder4232 Год назад +1

    What is the name of the theme you're using?

  • @kimbapslayer1995
    @kimbapslayer1995 2 года назад +8

    Sometimes I think content creators are so funny. You just released a video "why JSON web tokens suck! You should stop using them!" 😂 Idk I find it funny

  • @nizamarif5825
    @nizamarif5825 Год назад +1

    Hi, the cookies are deleted when I refresh the page. Are they supposed to do that?

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

      did you solved this problem?

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

      ​@@murilobarbosa5062 actually I didn't so I choose to save the token on the browsers state

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

      @@murilobarbosa5062the usual way is to set it in your react context that wraps around the application

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

    What vscode theme are you using?

  • @tyndecor5236
    @tyndecor5236 Год назад +1

    how to use refresh token?

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

    could the kit be used with nextjs?

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

      The docs of "react-auth-kit" library says: "Works with Gastsby, Next JS".

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

    hy guys, when I use
    const auth = useAuthUser();
    console.log(auth().email);
    I get error "Object is possibly 'null'.ts(2531)" Could anybody help? thx

  • @erikm9768
    @erikm9768 3 месяца назад

    thanks for not doing another lame sponsored auth0 video like every other sellout

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

    awesome video

  • @push-to-talkpodcast2864
    @push-to-talkpodcast2864 Год назад

    theme?

  • @_tilu4702
    @_tilu4702 2 месяца назад

    Tutorial outdated, look at the documentation to get more informations.

  • @BADGRAPHIX
    @BADGRAPHIX Год назад +1

    7:03 is where he starts getting into the meat of what you actually do.

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

    How do i persist login after refresh?

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

    can you make the same app but with next js? wnna see how to implemennt this with next js and also http only cookie

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

      i think for nextjs, nextauth is the only library than can really work well

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

      @@monarchgam3r next auth is full stack loking for secure client side

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

      @@zakidzz well this library can't work for that..as it requires react router dom

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

      @@monarchgam3r thnk s man

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

      @@zakidzz are u already know how to make auth with next js for client side only?

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx Год назад +2

    how to use refresh token please tell

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

    api not working

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

    i am waiting for your videos

  • @felicytatomaszewska
    @felicytatomaszewska Год назад +1

    So you are saying that doing it from the scratch, understanding each and every step, controlling and customizing the process is crappy and creepy stuff?

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

    what's that ide?

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

    thanks

  • @mickey-ij7un
    @mickey-ij7un Год назад

    How can I prevent user from accessing '/login' as authorized user? I'm looking for something like the opposite to

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

    less then 5 min and this video is of 13 min 😂😂

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

    big fan of you

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

    it's not 5 mins

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

    Is it safe to store the jwt token in client side cookie?

    • @aniket-in
      @aniket-in Год назад +3

      Nope, you are vulnerable to XSS attacks.
      The authentication token cookie must be set from the server.

  • @BigSmoke-r9w
    @BigSmoke-r9w 2 месяца назад

    I cant understand crap.