Serverless Auth with Lucia Auth V3

  Рет қаралды 7,607

CodeBrew

CodeBrew

Күн бұрын

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
My Socials
✍️ Blog: links.cdbrw.co...
🗄️ GitHub: links.cdbrw.co...
🐦 Twitter: links.cdbrw.com/x
Products I Use
🌐 My browser: links.cdbrw.co...
🎥 Recording software: links.cdbrw.co...
🎤 Microphone: links.cdbrw.co...
🦾 Microphone stand: links.cdbrw.co...
Video Links
Lucia Auth: lucia-auth.com/
HTMX + Cloudflare Workers: • Serverless With HTMX &...
GitHub Repo: github.com/cdb...

Пікірлер: 34
@cdbrw
@cdbrw 4 ай бұрын
I somehow managed to pronounce Lucia in 50 different ways in this video 😅
@MarkDeibert
@MarkDeibert 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@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
@LeaTamola
@LeaTamola 3 ай бұрын
This was great, thank you so much for the content!
@technoM4niac
@technoM4niac 4 ай бұрын
Amazing video my friend. I've learned alot!
@dashx2
@dashx2 4 ай бұрын
I would definitely want to see Lucia Auth V3 with OAuth for google and facebook.
@jonoisedev
@jonoisedev 4 ай бұрын
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 4 ай бұрын
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
@riley_was_there
@riley_was_there 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@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!
@shaked1233
@shaked1233 4 ай бұрын
Great vid, subscribed!
@cdbrw
@cdbrw 4 ай бұрын
Thanks 🙏
@oyal616
@oyal616 4 ай бұрын
Excellent video. I really like it.
@AllanDeutsch
@AllanDeutsch 3 ай бұрын
Would love to see SSO via SAML using lucia!
@davidsiewert8649
@davidsiewert8649 4 ай бұрын
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.
@MohamedElguarir
@MohamedElguarir 4 ай бұрын
Amazing content man, Thanks a lot🙏🙌🏻 if you could implement role based auth using lucia that would be amazing!
@cdbrw
@cdbrw 4 ай бұрын
Thanks! Will add it to my list 😉
@qualifyernst4576
@qualifyernst4576 4 ай бұрын
Can you do, video, on Lucia auth, in a MERN stack, using next.js
@cdbrw
@cdbrw 4 ай бұрын
Yup, have a few Nextjs videos lined up 😉
@gustavo-oi1dd
@gustavo-oi1dd 4 ай бұрын
hey man, great video, what theme do you use, I love it
@cdbrw
@cdbrw 4 ай бұрын
Thanks! It's called Vesper++
@gustavo-oi1dd
@gustavo-oi1dd 4 ай бұрын
@@cdbrw thank you!
@funfstuck
@funfstuck 3 ай бұрын
it'd be cool if you used ер app router
@whit6119
@whit6119 4 ай бұрын
Great video. Does Scrypt hash the password within the clodulfare workers request CPU time?
@cdbrw
@cdbrw 4 ай бұрын
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 4 ай бұрын
@@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.
@sujjee
@sujjee Ай бұрын
hey @cdbrw how to use integer instead of text for id in users table?? i didn't any doc for this
@cdbrw
@cdbrw Ай бұрын
hey! if you scroll to the bottom of this page: lucia-auth.com/basics/users they have a section on how to change the type of the user id to a number will also be covering how to do this in a future video 👍
@sujjee
@sujjee Ай бұрын
@@cdbrw thanks man!
@Mohaned-m1w
@Mohaned-m1w 4 ай бұрын
i'm a video editor who is a computer science student as well how can i contact you to start working together?
@cdbrw
@cdbrw 4 ай бұрын
Hey, feel free to shoot me a dm on twitter! I’m pretty active on there
Multi-Tenant SaaS Architecture (Next.js Auth)
22:57
ByteGrad
Рет қаралды 20 М.
Oh, Auth Doesn't Have to Suck?
7:16
Josh tried coding
Рет қаралды 63 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 29 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 42 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 8 МЛН
SvelteKit Auth in 15 Minutes
14:10
Ben Davis
Рет қаралды 7 М.
ShadCN’s Revolutionary New CLI
12:11
Jack Herrington
Рет қаралды 44 М.
A New Drag And Drop Library For EVERY Framework
16:02
Theo - t3․gg
Рет қаралды 130 М.
How to setup Lucia auth in Next.js (in 8 minutes)
8:20
Web Dev Cody
Рет қаралды 11 М.
Turso First Impressions - Worth The Hype?
11:27
CodeBrew
Рет қаралды 8 М.
Can You EASILY Send Emails from Cloudflare Workers?
14:27
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 29 МЛН