Serverless Auth with Lucia Auth V3

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • Lucia Auth - it's been popping up a lot recently. Super modular way of adding auth to your app. This time using Cloudflare Workers, Hono, Drizzle ORM and D1. Honestly, this was way easier than I was expecting to get working and deploy. Let me know if youd want to see other things like password reset flows, confirmation codes, OAuth etc.
    #luciaauth #cloudflare #drizzleorm
    ✱✱ Links
    Lucia Auth: lucia-auth.com/
    HTMX + Cloudflare Workers: • Serverless With HTMX &...
    GitHub Repo: github.com/cdbrw/cfw-bun-hono...
    ➙ Blog: links.cdbrw.com/blog
    ➙ GitHub: links.cdbrw.com/github
    ➙ Twitter: links.cdbrw.com/x
    👉 Support the channel: links.cdbrw.com/support
    ➙ My browser: links.cdbrw.com/browser
    ➙ Recording software: links.cdbrw.com/recording
    ➙ Microphone (US): links.cdbrw.com/mic-us
    ➙ Microphone (CA): links.cdbrw.com/mic-ca
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @cdbrw
    @cdbrw  27 วันที่ผ่านมา +9

    I somehow managed to pronounce Lucia in 50 different ways in this video 😅

  • @LeaTamola
    @LeaTamola 2 วันที่ผ่านมา

    This was great, thank you so much for the content!

  • @technoM4niac
    @technoM4niac 27 วันที่ผ่านมา

    Amazing video my friend. I've learned alot!

  • @MarkDeibert
    @MarkDeibert 27 วันที่ผ่านมา +1

    Awesome video my friend! I'm really loving Hono JS in Cloudflare Pages lately. You can build and deploy a site super quick with these. For this Lucia Auth demo, it would be cool to see you add the "email verification", "login fails lockout" and the "password reset" code. Might be neat to later add user "avatars". But yeah, anyway, *great* stuff. Keep it going :-)

    • @cdbrw
      @cdbrw  26 วันที่ผ่านมา +1

      User avatars is already on the list. I've wanted to try out their file storage for some time now so will definitely make a video on that. Will also add the other ones to my list, all really good topics. Thanks! 🙏

    • @MarkDeibert
      @MarkDeibert 26 วันที่ผ่านมา

      @@cdbrw I have R2, D1, KV and Images code in a few different projects. It's amazing what Cloudflare is doing. So much functionality in so few lines of code

  • @oyal616
    @oyal616 27 วันที่ผ่านมา

    Excellent video. I really like it.

  • @davidsiewert8649
    @davidsiewert8649 25 วันที่ผ่านมา +2

    It seems like a bad developer experience not having live reload / HMR then developing on the Frontend - that's the main Advantage then writing JSX (in comparison to simple string template literals).
    I guess you would have to run a separate vite/nextjs dev server to have a nice developer experience in parallel to your hono/bun api server.

  • @shaked1233
    @shaked1233 25 วันที่ผ่านมา

    Great vid, subscribed!

    • @cdbrw
      @cdbrw  20 วันที่ผ่านมา

      Thanks 🙏

  • @AllanDeutsch
    @AllanDeutsch 10 วันที่ผ่านมา

    Would love to see SSO via SAML using lucia!

  • @jonoisedev
    @jonoisedev 26 วันที่ผ่านมา

    im planning to migrate my app `/api` routes to an actual server because i'm gonna need to make a mobile app out of it. they currently are nextjs routes with next-auth. im liking Hono a lot! thanks for the content!

    • @cdbrw
      @cdbrw  26 วันที่ผ่านมา

      I like the ease of setup with cloudflare workers but I still think, depending on the project ofc, that having a proper server is where it's at

  • @dashx2
    @dashx2 25 วันที่ผ่านมา

    I would definitely want to see Lucia Auth V3 with OAuth for google and facebook.

  • @riley_was_there
    @riley_was_there 27 วันที่ผ่านมา

    What a fantastic series! Thank you so much for putting this out there. You do a great job of keeping things brief but still explaining everything very well
    Please keep it going! I’d love to see how you would implement multiple login options, including OAuth. Your app is more of a CMS for a blog right now, so maybe you could add a page for each post that anyone can view? You can style the content nicely using the tailwind typography plugin. You could also show how to generate url slugs from the blog titles.
    One other thing I’m curious about regarding this stack is generating custom tailwind stylesheets rather than using the CDN. Any idea how to set this up?
    Thanks again for the awesome series! I’ve learned a ton

    • @cdbrw
      @cdbrw  26 วันที่ผ่านมา

      Appreciate the really nice comment, made my day 😭
      Yea the plan is definitely to keep building on it and adding new features. Ill for sure make a video on OAuth! I've kind of kept the front-end changes that I make off camera just so the videos don't end up being 2 hours long but if there's value there I can definitely start showing more of that too.
      So you mean directly installing tailwind into the project as opposed to using the CDN to import it through a script tag?

    • @riley_was_there
      @riley_was_there 23 วันที่ผ่านมา

      @@cdbrw If you want to keep it focussed on backend it’d be great to see a demo of how to implement file uploading and hosting!

  • @MohamedElguarir
    @MohamedElguarir 27 วันที่ผ่านมา

    Amazing content man, Thanks a lot🙏🙌🏻
    if you could implement role based auth using lucia that would be amazing!

    • @cdbrw
      @cdbrw  26 วันที่ผ่านมา +1

      Thanks! Will add it to my list 😉

  • @gustavo-oi1dd
    @gustavo-oi1dd 26 วันที่ผ่านมา

    hey man, great video, what theme do you use, I love it

    • @cdbrw
      @cdbrw  26 วันที่ผ่านมา

      Thanks! It's called Vesper++

    • @gustavo-oi1dd
      @gustavo-oi1dd 26 วันที่ผ่านมา

      @@cdbrw thank you!

  • @whit6119
    @whit6119 26 วันที่ผ่านมา

    Great video. Does Scrypt hash the password within the clodulfare workers request CPU time?

    • @cdbrw
      @cdbrw  25 วันที่ผ่านมา +1

      For cloudflare workers the options seem to be limited to basically just pure JS hashing libraries and the Lucia Scrypt implementation is one of those. Lucia actually recommends to stay away from runtimes like cloudflare workers when it comes to hashing passwords. I've not had issues with it so far but I've also not had to use it at any sort of scale so I can't speak on how reliable it is to stay within the request time

    • @whit6119
      @whit6119 24 วันที่ผ่านมา

      @@cdbrw yes I found Lucia a little confusing as it says it works with runtimes like cloudlareflare workers but then it says for password hashing not to use cloudflare workers runtime. Glad to hear you have no issues so far, I wonder how it scales.

  • @qualifyernst4576
    @qualifyernst4576 23 วันที่ผ่านมา

    Can you do, video, on Lucia auth, in a MERN stack, using next.js

    • @cdbrw
      @cdbrw  23 วันที่ผ่านมา

      Yup, have a few Nextjs videos lined up 😉

  • @user-tt4vf9hl4s
    @user-tt4vf9hl4s 25 วันที่ผ่านมา

    i'm a video editor who is a computer science student as well how can i contact you to start working together?

    • @cdbrw
      @cdbrw  20 วันที่ผ่านมา

      Hey, feel free to shoot me a dm on twitter! I’m pretty active on there