I Never Want To Build Authentication Any Other Way

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 95

  • @julianbritto237
    @julianbritto237 3 місяці тому +17

    Goddamn… THAT WAS SO DETAILED AND EXPLAINATORY😩 super proud of youuuuu Ellyyyy 🔥🫶🏻

  • @bread-uf9wd
    @bread-uf9wd 3 місяці тому +5

    This is so educational! Thank you for the content, im looking forward to embarking with you on the course :)

  • @0xxi1
    @0xxi1 24 дні тому

    Loving the content Elliott. How young and knowledgeable you are is inspiring!
    Looking forward to seeing this channel and community grow!

  • @shashankinjapan
    @shashankinjapan 3 місяці тому +5

    Most Underrated Kid . Tbh , why don't you start a course series or something for fullstack

    • @PolarBearBaby
      @PolarBearBaby 3 місяці тому +2

      he already did.checkout his description.

    • @shashankinjapan
      @shashankinjapan 3 місяці тому

      @@PolarBearBaby didn't knew , thanks for letting me know

    • @PolarBearBaby
      @PolarBearBaby 3 місяці тому

      @@shashankinjapan welcome

  • @soon8098
    @soon8098 3 місяці тому +2

    Welcome back Ellee!!!!

  • @dreamsachiever212
    @dreamsachiever212 3 місяці тому +2

    glad to see u back

  • @TheMessiah64
    @TheMessiah64 3 місяці тому +2

    another superb quality vid elliott❤❤ keep up the great work 😊

  • @mouadp7564
    @mouadp7564 3 місяці тому

    This is the best explanation I had about authentication !!! KEEP UP BRO

  • @forbidden_lion
    @forbidden_lion 3 місяці тому +1

    Bro you are a hero you are a legend you are a saviour you are a thanos! Just when I am fed up of Next auth you made this. Thank you

  • @sohansingh2022
    @sohansingh2022 3 місяці тому +1

    Nice to see you back

  • @MohamedElguarir
    @MohamedElguarir 3 місяці тому

    Yesssiir welcome back Eliot 🔥🙏

  • @ntramu4186
    @ntramu4186 3 місяці тому +11

    Since when did you started learning code? Because comparing to the fact that you're 19 but having much more knowledge than a 22 yrs old me is admiring :D

    • @vedprakash-zz6hb
      @vedprakash-zz6hb 3 місяці тому +1

      He taught in freecodecamp , so I also doubt when he started learning coding 😮

    • @elliottchong
      @elliottchong  3 місяці тому +2

      Thank you for the kind words! I learnt coding myself around 3 years ago, started web dev 2 years ago!

    • @ntramu4186
      @ntramu4186 3 місяці тому +1

      @@elliottchong thats actually amazing, i have been around web dev for nearly 2 years now but im feeling like being stuck at one place and dont know what should I do to be a better software engineer :(

    • @arshanshaikh2958
      @arshanshaikh2958 3 місяці тому +3

      Asians are always the smartest😅

  • @DaniG-3
    @DaniG-3 Місяць тому

    I've never assist to a video like this one. Very Interesting , Keep Up

  • @InarusLynx
    @InarusLynx 28 днів тому +1

    I also fell into the Clerk trap. I wanted to control how org roles were assigned without having someone go the clerk. It's started getting messy very quickly when I just wanted an admin to be able to assign someone a role on my site.
    I wouldn't say dropping clerk has been hard. Figuring out another solution was.

  • @taunado
    @taunado Місяць тому

    Gold, thank you.

  • @wizz1e80
    @wizz1e80 3 місяці тому

    Dude you're 19!!!!!
    Damn i'm sooo impressed

  • @eclipse-224
    @eclipse-224 2 місяці тому

    Thank you, this was really helpful!

  • @maxklink3979
    @maxklink3979 3 місяці тому

    Great video man 💪

  • @mrlectus
    @mrlectus 27 днів тому

    If he created this and took third, just imaging what the first and second person created, damn!

  • @lavisharma3210
    @lavisharma3210 3 місяці тому

    Amazing video
    Thanks for creating it

  • @LearnAlongFaizan
    @LearnAlongFaizan 2 місяці тому

    Great video,
    make one on mermaid to make diagrams in next js

  • @mamlzy
    @mamlzy 2 місяці тому +1

    Thank you for your details explanation! but may i ask you a question, how to get the session on client side without making all the pages dynamic because accessing `cookie()` from `next/headers`?

  • @BreydanTan
    @BreydanTan 3 місяці тому +1

    Long time no see Elliot

  • @samane3672
    @samane3672 2 місяці тому

    Just what i was looking for thanks a lot

  • @sane2205
    @sane2205 2 місяці тому

    Video worthy of sub, great stuff

  • @AJ-pz8ug
    @AJ-pz8ug 2 місяці тому

    Keep up the great work! Cool Cool Cool!

  • @EmilAndLina
    @EmilAndLina 2 місяці тому

    Great Video! 🫶 You could make a second video for email verification and password reset etc.

  • @nilesh6439
    @nilesh6439 3 місяці тому

    Nice mindset brother and love from India , and being 21 but still learning from you looks very interesting!

  • @hopaa
    @hopaa 3 місяці тому

    glad to see you

  • @MSRCodeLab
    @MSRCodeLab 3 місяці тому

    Eagerly waiting for the video like building a production based AI SAAS tool that has these features AI humanizer tool and AI Content detector tool, simply clone of undetectable ai tool or hix ai humanizer tool.

  • @AjaySingh-jz8qx
    @AjaySingh-jz8qx 3 місяці тому

    I mostly prefer next auth but i also try lucia also

  • @dev-akeel
    @dev-akeel 3 місяці тому

    instead of releasing mouse when you press `cmd + shift + 4` don't release it, it saves the screenshot, rather press esc and then release mouse.
    If you understand and love the tip, send me a heart in reply.

    • @dev-akeel
      @dev-akeel 3 місяці тому

      40:10 BTW super easy is to press cmd + shift + L

  • @yanDev
    @yanDev 3 місяці тому

    very happy to see you back! thanks for this video. have you already test Kinde auth and what is your feedback about this?

    • @olivebishop3794
      @olivebishop3794 2 місяці тому

      why dont you use somehing which is open sauce ?

  • @iulikdev
    @iulikdev 5 днів тому

    Why do you need library for auth? i keep a simple login with jwt check in middleware.

  • @avinavkashyap8802
    @avinavkashyap8802 3 місяці тому

    Please launch a backend series 😊

  • @jeromelim14
    @jeromelim14 3 місяці тому +2

    🔥🔥🔥

  • @devanshtiwari2193
    @devanshtiwari2193 20 днів тому

    Hey Elliot ,
    I have a query what will we do with bunch of sessions we created everytime we login is there any fix?
    btw thanks a lot for this resource.

  • @mrlectus
    @mrlectus 27 днів тому

    Also, is there a reason you're using sudo?

  • @Tanner-cz4bd
    @Tanner-cz4bd Місяць тому

    yeah but we dont want to store our users data, that is hard to make secure

  • @KennethTrinh-cm6cp
    @KennethTrinh-cm6cp 3 місяці тому

    u the goat! ty!!

  • @brancode404
    @brancode404 3 місяці тому

    Nice one bro. What's your take on Kinde?

  • @nutshellggdarken7114
    @nutshellggdarken7114 3 місяці тому +2

    What's your browser and VSCode theme?

    • @elliottchong
      @elliottchong  3 місяці тому

      I’m using Arc browser, and the VSCode theme is one of the default ones

    • @nutshellggdarken7114
      @nutshellggdarken7114 3 місяці тому

      Thank you! ❤️default vscode font also?

  • @4rvlt913
    @4rvlt913 3 місяці тому

    hi, may i ask what terminal you're using ? it looks really cool

  • @ovna
    @ovna 20 днів тому

    Bro it's insane, i want to know how did you learn computer science so when i will have a child i can teach him young the best way so he can understand and learn code like u. i see that you did hackathlon so i think th best way to learn is by doing something "fun" i guess. Like codeinggame maybe

  • @hicoop
    @hicoop 2 місяці тому +9

    I would avoid Lucia for now. While the package seems useful, it is largely maintained by a single person, without any audits. A helper package for your frontend is one thing, but a single maintainer for your sensitive data is another. Supply chain attacks are real

    • @codingwithjamal
      @codingwithjamal 2 місяці тому

      True but this “one person” did a lot of work for free for people. You can always look at the source and even build on top of it yourself so you control the code. People who dont know how to make DIY auth safe dont care if auth libraries are safe or not there using them for convenience

    • @hicoop
      @hicoop 2 місяці тому

      ​@@codingwithjamal auth.js has been around for years and has been audited by real companies

    • @antidegenerates7449
      @antidegenerates7449 2 місяці тому

      What a 🤡 I bet you haven’t read a single package source code once in your life

    • @combatninjaturtle
      @combatninjaturtle Місяць тому +4

      It doesn't matter if its built by one person.
      The author is really good in authentication and it really works. No complain whatsoever.
      also there are 100+ contributors.

  • @kenshinhimura3140
    @kenshinhimura3140 3 місяці тому

    The famous Chinese is back

  • @remiguillard3773
    @remiguillard3773 Місяць тому

    Don't understand how you can use cookies() in a server actions, this is provide by the nodejs api ? How it's work in deep, response of a post form containe cookie, and broswer automaticly set the cookie into the browser ?

    • @combatninjaturtle
      @combatninjaturtle Місяць тому +1

      server action is basically a POST endpoint. So you can access manipulate cookies inside it. This cookie is then passed to the browser and save it.

  • @LearnAlongFaizan
    @LearnAlongFaizan 2 місяці тому

    Hey, very good video, but don't you think this approach will call the db for every request, which might lead to unnecessary, just a doubt, how about jwt approach instead? feel free to correct me

    • @combatninjaturtle
      @combatninjaturtle Місяць тому

      You can just cache the output of getUser after successful login and put it inside the middleware instead of each page.

  • @neerajuikey2396
    @neerajuikey2396 Місяць тому

    please add forgot password and email verification

  • @РодионЧаускин
    @РодионЧаускин 8 днів тому

    Lewis Carol Williams Mark Lee Timothy

  • @kenshinhimura3140
    @kenshinhimura3140 3 місяці тому

    And supabase auth?

  • @wizz1e80
    @wizz1e80 3 місяці тому

    Can i use lucia with vite?

  • @ukeshrestha
    @ukeshrestha 3 місяці тому

    Can we use lucia on React project as well?

    • @jeffreytgilbert
      @jeffreytgilbert 7 днів тому +1

      what’s wild is lucia does almost nothing in the grand scheme of things. you still need a library for handling the sso integrations. it doesn’t do anything for magic email links or sms codes. you’re basically writing the entire auth from scratch anyway.

    • @PeterSahanaya
      @PeterSahanaya 5 днів тому

      ​@@jeffreytgilbertyeaa you're right

  • @mohamedsallam76
    @mohamedsallam76 3 місяці тому +2

    I am second

  • @5MinuteSmarter
    @5MinuteSmarter 3 місяці тому +2

    I'm first 😂

  • @madisopabul
    @madisopabul Місяць тому

    next auth is trash

  • @MuneebR7
    @MuneebR7 Місяць тому

    Great video. However if we signout it didnt delete the current cookie from Database which you need to delete.
    i just modify the code to like that let me know if that is the good way to do that..
    export const logOutAction = async () => {
    const currentCookie = cookies().get(lucia.sessionCookieName)?.value
    await lucia.invalidateSession(currentCookie);
    currentCookie const session = await lucia.createBlankSessionCookie();
    cookies().set(session.name, session.value, session.attributes);
    return redirect("/");
    };

  • @danko95bgd
    @danko95bgd 3 місяці тому

    what if i told you that you have better open source auth systems that can be used in any language and not just shitty nodejs

    • @liu-river
      @liu-river 3 місяці тому

      Spill the beans already

    • @danko95bgd
      @danko95bgd 3 місяці тому

      @@liu-river ory kratos, zitadel, authentik and even crap java keycloak. I have used kratos and keycloak. I would never use keycloak again for many reasons...

  • @AdolfRizzler41
    @AdolfRizzler41 3 місяці тому

    Clerk , kinde now this