Тёмный

Serverless Auth with Lucia Auth V3 

CodeBrew
Подписаться 2,9 тыс.
Просмотров 4,7 тыс.
50% 1

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

Наука

Опубликовано:

 

16 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@cdbrw
@cdbrw Месяц назад
I somehow managed to pronounce Lucia in 50 different ways in this video 😅
@LeaTamola
@LeaTamola 27 дней назад
This was great, thank you so much for the content!
@technoM4niac
@technoM4niac Месяц назад
Amazing video my friend. I've learned alot!
@oyal616
@oyal616 Месяц назад
Excellent video. I really like it.
@shaked1233
@shaked1233 Месяц назад
Great vid, subscribed!
@cdbrw
@cdbrw Месяц назад
Thanks 🙏
@MarkDeibert
@MarkDeibert Месяц назад
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 Месяц назад
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 Месяц назад
@@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
@AllanDeutsch
@AllanDeutsch Месяц назад
Would love to see SSO via SAML using lucia!
@jonoisedev
@jonoisedev Месяц назад
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 Месяц назад
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 Месяц назад
I would definitely want to see Lucia Auth V3 with OAuth for google and facebook.
@riley_was_there
@riley_was_there Месяц назад
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 Месяц назад
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 Месяц назад
@@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 Месяц назад
Amazing content man, Thanks a lot🙏🙌🏻 if you could implement role based auth using lucia that would be amazing!
@cdbrw
@cdbrw Месяц назад
Thanks! Will add it to my list 😉
@davidsiewert8649
@davidsiewert8649 Месяц назад
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.
@whit6119
@whit6119 Месяц назад
Great video. Does Scrypt hash the password within the clodulfare workers request CPU time?
@cdbrw
@cdbrw Месяц назад
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 Месяц назад
@@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 Месяц назад
Can you do, video, on Lucia auth, in a MERN stack, using next.js
@cdbrw
@cdbrw Месяц назад
Yup, have a few Nextjs videos lined up 😉
@gustavo-oi1dd
@gustavo-oi1dd Месяц назад
hey man, great video, what theme do you use, I love it
@cdbrw
@cdbrw Месяц назад
Thanks! It's called Vesper++
@gustavo-oi1dd
@gustavo-oi1dd Месяц назад
@@cdbrw thank you!
@funfstuck
@funfstuck 22 дня назад
it'd be cool if you used ер app router
@user-tt4vf9hl4s
@user-tt4vf9hl4s Месяц назад
i'm a video editor who is a computer science student as well how can i contact you to start working together?
@cdbrw
@cdbrw Месяц назад
Hey, feel free to shoot me a dm on twitter! I’m pretty active on there
Далее
“Act On Press” - John Carmack's Hot Take On UI
7:54
100❤️
00:19
Просмотров 2,4 млн
Lasagna Soup @Lionfield
00:35
Просмотров 8 млн
I'm finally moving away from Next-Auth
16:24
Просмотров 18 тыс.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Dokploy - Introduction
9:07
Просмотров 8 тыс.
I Was Wrong About React Router.
19:06
Просмотров 57 тыс.
UI Libraries Are Dying, Here's Why
13:28
Просмотров 276 тыс.
Get Started With HTMX Using Bun, Hono & more!
10:11
Просмотров 7 тыс.
Laravel + Cloudflare D1 speedrun
7:43
Просмотров 13 тыс.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33