Lucia was definitely the easiest way to set up authentication… until you realize there are breaking changes every 6 months
@WebDevCody3 ай бұрын
How it’s going to work out: our boy Ben Davis is going to make a small npm packaged called Lucia-drizzle-session and we gucci
@felipejzrd3 ай бұрын
Pretty much
@Scapben3 ай бұрын
Didn't you say a while ago on tweeter that Lucia is going to be an other library abandoned in one year? And pilcrow answered "bet" lmao
@WebDevCody3 ай бұрын
@@Scapben oh dang I forgot about that
@bmdavis4193 ай бұрын
I mean like github.com/bmdavis419/create-cyber-app
@MaxProgramming3 ай бұрын
Loved using the library but yeah now without the library it's good to see it's still the perfect guide for simple auth
@my_yt6663 ай бұрын
Back to Auth.js. I've implemented most what Auth.js offers + MFA and session management in a SaaS starter kit called Achromatic.
@bkschatzki3 ай бұрын
Yeah I don't mind this. Working with different auth solutions, it felt like Lucia was a little stuck in the middle. This is probably the best outcome; this is a sustainable identity for Lucia in the long run.
@chillydill47033 ай бұрын
Interesting, I implemented auth from scratch recently with some ideas from Lucia and it was not hard at all. Of course, you need to spend some time on certain parts as you said but it's really not that hard and I think it's a great learning experience!
@budivoogt4913 ай бұрын
Seconding this experience. Ben, thanks for highlighting that this migration shouldn't be such a deterrent and can actually improve control and sustainability of our implementations.
@evheniydan2 ай бұрын
Can you recommend any resources for getting started with auth from scratch? I just need a reference for, like, what it at least generally looks like.
@anonanon73683 ай бұрын
The industry is going in the shadcn approach, it's a good thing, no need to download packages, just put code into your code base and use it. I hope he also makes a CLI to easier bring everything into your codebase like shadcn
@asadsalehumar10112 ай бұрын
Exactly what I've been thinking. I personally liked it, no need to fear the auth, just embrace it.
@Chenny03 ай бұрын
The writing was on the wall with the deprecation of drizzle and no redis/memcache adapter.
@tcurdt3 ай бұрын
I never understood why the database integeration was done. It really never made much sense. User should just provided functions to e.g. load and store sessions.
@asadsalehumar10112 ай бұрын
Exactly 💯
@furycorp3 ай бұрын
If you think about it Lucia is mostly its docs and community. An actual auth implementation with Lucia only has a few calls to Lucia-related code itself which is only then a few lines of code. Absolutely everything else was database differences which really isn't the spirit of Lucia. The Internet was and is really missing good guidance on writing auth. Its so bad that modern LLM's trip over themselves and promote horrific practices and provide bad advice -- their training data is lacking. OWASP for all its efforts is so far from it: they pontificate about what to do or what not to do but you don't see any recipes or reference implementations which in practical terms limits their effectiveness and reach.
@deezydoezeet3 ай бұрын
I also like the direction, even though I feel the abstraction was already just right! Love it still!
@Totomenu3 ай бұрын
The only itch I have is that now I have to keep up with the latest security updates. Upgrading packages is not enough to make sure that my auth is running the right ecryption and stuff
@xyangst3 ай бұрын
What do you mean by security updates? Cant rly think of something like that happening recently
@RemotHuman3 ай бұрын
These problems seem to apply to all libraries that need a database to work. I feel like more of these libraries should exist so that everything is like easy lego blocks, but this problem would get in the way. Instead what happens is libraries host the database and servers for you and then charge you as SaaS products. But I like libraries more as there’s more control and they are generally free.
@abdulrafay19513 ай бұрын
there's new one, better-auth the guy is developing it like a maniac do check it out and contribute as he's alone.
@derproka3 ай бұрын
Yeah I saw… this is a bit sad for since now I’ll have to write a bit more code but hey, it’s no big problem.
@sukontoraharjo65653 ай бұрын
Didn't know jack harlow was chill like that 😂
@reversetcp3 ай бұрын
mane same, feeling. it took me a few days to take it in but ig its a good thing
@bmdavis4193 ай бұрын
Its been trending this way for a while, kinda a bummer but I totally get why hes doing it
@Caldaron3 ай бұрын
knowing what you're using is kinda neat ngl ;-)
@IkraamDev3 ай бұрын
I agree, at least this will help developers understand authentication better.
@arvi88433 ай бұрын
Thanks for the update! I was considering this then found this video. 😅 What do you think of Workos or Eartho?
@labdo_3 ай бұрын
Better-auth could be a good alternative, it has a higher level of abstraction than lucia and offer more features. But it's still in beta tho.
@realitydesigners3 ай бұрын
I’m so glad I never hopped on this wave
3 ай бұрын
Kinda wished he just introduced some callbacks for creating/deleting the sessions and let users handle the storage layer, but I get his point. After you remove the adapters, there isn't a lot of value between that and just managing the sessions yourself.
@tsykin3 ай бұрын
Have you tried using auth solution that actually uses callbacks without creating callback hell? I am experienced massive callback hell when using NextAuth and never coming back
@JEsterCW3 ай бұрын
@@tsykin auth.js is so freakin bad and problematic, i swear
@Totomenu3 ай бұрын
Yes! and then a good forum so people can share the schema and functions for each db. I'm pretty sure that in a couple of weeks they would cover almost all databases with 0 work from their part
@notnotjake3 ай бұрын
I think this is great. also what I think rails is starting in rails 8 based on dhh's keynote
@fus3n3 ай бұрын
Then isnt maintaining as an individual who implemented following the tutorial also cumbersome? I don't wanna sound unthankful that thede tools are already free and open source but, Isn't that sometimes the reason people choose libraries over manually writing?
@gryg6663 ай бұрын
It's good to learn it once, but then for every other project implementing it from scratch... nah..
@NabekenProG873 ай бұрын
You can just copy the implementation from another of your projects. It's literally just 1 file with 4 functions ...
@tsykin3 ай бұрын
Idk about you, but I am planning to use this new guide to roll auth with olso and arctic. What about you?
@paca31073 ай бұрын
only I is using own auth built from scratch?
@mostrealtutu3 ай бұрын
lol, js libraries getting deprecated, who would have thunk
@prashlovessamosa3 ай бұрын
Now we have Better-auth 😅 are there any js fullstack frameworks has its own auth support out of the box apart from adonis JS I think we need something like laravel.
@peteredmonds17123 ай бұрын
javascript moment
@semyaza5553 ай бұрын
Honestly, this is why I just use mature, stable ecosystems on the backend, i.e. Python/Django, Ruby/Rails, etc. JS is the only ecosystem where the libraries behind core app features (Auth, ORM, Module bundlers, etc) change every other year.
@arthuraguiar53823 ай бұрын
yeah... the fact that people need to use external libraries for something as fundamental as authentication that should be baked in (as it is with Laravel, for example) always bugs me
@muneebakram16703 ай бұрын
NestJs is pretty stable and very well maintained in JS ecosystem
@semyaza5553 ай бұрын
@@muneebakram1670 I like Nest , it’s a great starting point, but the community is still growing, and adoption isn’t as wide as it should be. It kinda reminds me of Koa tbh. Edit: It reminds of Koa in the sense that Koa was a great alternative to Express but just died on the vine.
@ProtectedClassTest3 ай бұрын
With emphasis on CORE features.. js cult has been solving nonexistent problems all along
@jeffreysmith98372 ай бұрын
@@muneebakram1670Nest doesn't have auth. Its just a DI container that pretends to be a framework by pulling in 10 other 3rd party libraries
@tran_hai_dg3 ай бұрын
Can you tell which font do you use for your VSCode?
@bmdavis4193 ай бұрын
Geist, the vercel font
@dgcp3543 ай бұрын
have you tried better-auth
@codingwithjamal3 ай бұрын
enjoyed the video
@edhahaz3 ай бұрын
shadcn of auth
@MengLinMaker3 ай бұрын
The root issue is wanting supertool library that does everything auth related. Supporting everything is probably impossible. In contrary, primitives like Artic and Oslo are more compostable and not coupled to dbs and orms.
@azizsafudin3 ай бұрын
Exactly, this is a good balance. Provide quality primitives and good docs for best practices and be done with it.
@qo7ems3 ай бұрын
roll your own auth!
@azizsafudin3 ай бұрын
And not have it adequately secure? Sure.
@qo7ems3 ай бұрын
@@azizsafudin did u not watch the video
@mrkostya0083 ай бұрын
roll your own auth brudda
@djordje19993 ай бұрын
Yeaa, i seen people paying for comments on their projects like they can't make it themselfs...
@semyaza5553 ай бұрын
@@djordje1999people pay for comment sections??
@DarkDunkelheit3 ай бұрын
yo wtf why, lucia is amazing, next auth is so opinionated and a hassle to work with,
@liamkearn3 ай бұрын
JavaScript ahhh video.
@mr.random84473 ай бұрын
I’m raging right now
@grimm_gen3 ай бұрын
Supabase auth is supa easy to set up
@hrqmonteiro3 ай бұрын
Let's be honest, EVERYBODY knew that was happening. No one uses it lol People in the ecossystem use AuthJS (former NextAuth) or something written from scratch.
@perc-ai3 ай бұрын
Ben we tried to warn you. Stop using these silly startup auth providers. Just learn AWS / GC for the love of all good things.
@hasan59843 ай бұрын
Which service should I learn to do things that I do with Lucia