My Favorite Auth Library is Getting Deprecated

  Рет қаралды 19,539

Ben Davis

Ben Davis

Күн бұрын

Пікірлер: 81
3 ай бұрын
Lucia was definitely the easiest way to set up authentication… until you realize there are breaking changes every 6 months
@WebDevCody
@WebDevCody 3 ай бұрын
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
@felipejzrd
@felipejzrd 3 ай бұрын
Pretty much
@Scapben
@Scapben 3 ай бұрын
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
@WebDevCody
@WebDevCody 3 ай бұрын
@@Scapben oh dang I forgot about that
@bmdavis419
@bmdavis419 3 ай бұрын
I mean like github.com/bmdavis419/create-cyber-app
@MaxProgramming
@MaxProgramming 3 ай бұрын
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_yt666
@my_yt666 3 ай бұрын
Back to Auth.js. I've implemented most what Auth.js offers + MFA and session management in a SaaS starter kit called Achromatic.
@bkschatzki
@bkschatzki 3 ай бұрын
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.
@chillydill4703
@chillydill4703 3 ай бұрын
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!
@budivoogt491
@budivoogt491 3 ай бұрын
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.
@evheniydan
@evheniydan 2 ай бұрын
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.
@anonanon7368
@anonanon7368 3 ай бұрын
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
@asadsalehumar1011
@asadsalehumar1011 2 ай бұрын
Exactly what I've been thinking. I personally liked it, no need to fear the auth, just embrace it.
@Chenny0
@Chenny0 3 ай бұрын
The writing was on the wall with the deprecation of drizzle and no redis/memcache adapter.
@tcurdt
@tcurdt 3 ай бұрын
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.
@asadsalehumar1011
@asadsalehumar1011 2 ай бұрын
Exactly 💯
@furycorp
@furycorp 3 ай бұрын
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.
@deezydoezeet
@deezydoezeet 3 ай бұрын
I also like the direction, even though I feel the abstraction was already just right! Love it still!
@Totomenu
@Totomenu 3 ай бұрын
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
@xyangst
@xyangst 3 ай бұрын
What do you mean by security updates? Cant rly think of something like that happening recently
@RemotHuman
@RemotHuman 3 ай бұрын
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.
@abdulrafay1951
@abdulrafay1951 3 ай бұрын
there's new one, better-auth the guy is developing it like a maniac do check it out and contribute as he's alone.
@derproka
@derproka 3 ай бұрын
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.
@sukontoraharjo6565
@sukontoraharjo6565 3 ай бұрын
Didn't know jack harlow was chill like that 😂
@reversetcp
@reversetcp 3 ай бұрын
mane same, feeling. it took me a few days to take it in but ig its a good thing
@bmdavis419
@bmdavis419 3 ай бұрын
Its been trending this way for a while, kinda a bummer but I totally get why hes doing it
@Caldaron
@Caldaron 3 ай бұрын
knowing what you're using is kinda neat ngl ;-)
@IkraamDev
@IkraamDev 3 ай бұрын
I agree, at least this will help developers understand authentication better.
@arvi8843
@arvi8843 3 ай бұрын
Thanks for the update! I was considering this then found this video. 😅 What do you think of Workos or Eartho?
@labdo_
@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.
@realitydesigners
@realitydesigners 3 ай бұрын
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.
@tsykin
@tsykin 3 ай бұрын
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
@JEsterCW
@JEsterCW 3 ай бұрын
​@@tsykin auth.js is so freakin bad and problematic, i swear
@Totomenu
@Totomenu 3 ай бұрын
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
@notnotjake
@notnotjake 3 ай бұрын
I think this is great. also what I think rails is starting in rails 8 based on dhh's keynote
@fus3n
@fus3n 3 ай бұрын
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?
@gryg666
@gryg666 3 ай бұрын
It's good to learn it once, but then for every other project implementing it from scratch... nah..
@NabekenProG87
@NabekenProG87 3 ай бұрын
You can just copy the implementation from another of your projects. It's literally just 1 file with 4 functions ...
@tsykin
@tsykin 3 ай бұрын
Idk about you, but I am planning to use this new guide to roll auth with olso and arctic. What about you?
@paca3107
@paca3107 3 ай бұрын
only I is using own auth built from scratch?
@mostrealtutu
@mostrealtutu 3 ай бұрын
lol, js libraries getting deprecated, who would have thunk
@prashlovessamosa
@prashlovessamosa 3 ай бұрын
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.
@peteredmonds1712
@peteredmonds1712 3 ай бұрын
javascript moment
@semyaza555
@semyaza555 3 ай бұрын
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.
@arthuraguiar5382
@arthuraguiar5382 3 ай бұрын
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
@muneebakram1670
@muneebakram1670 3 ай бұрын
NestJs is pretty stable and very well maintained in JS ecosystem
@semyaza555
@semyaza555 3 ай бұрын
⁠@@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.
@ProtectedClassTest
@ProtectedClassTest 3 ай бұрын
With emphasis on CORE features.. js cult has been solving nonexistent problems all along
@jeffreysmith9837
@jeffreysmith9837 2 ай бұрын
​@@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_dg
@tran_hai_dg 3 ай бұрын
Can you tell which font do you use for your VSCode?
@bmdavis419
@bmdavis419 3 ай бұрын
Geist, the vercel font
@dgcp354
@dgcp354 3 ай бұрын
have you tried better-auth
@codingwithjamal
@codingwithjamal 3 ай бұрын
enjoyed the video
@edhahaz
@edhahaz 3 ай бұрын
shadcn of auth
@MengLinMaker
@MengLinMaker 3 ай бұрын
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.
@azizsafudin
@azizsafudin 3 ай бұрын
Exactly, this is a good balance. Provide quality primitives and good docs for best practices and be done with it.
@qo7ems
@qo7ems 3 ай бұрын
roll your own auth!
@azizsafudin
@azizsafudin 3 ай бұрын
And not have it adequately secure? Sure.
@qo7ems
@qo7ems 3 ай бұрын
@@azizsafudin did u not watch the video
@mrkostya008
@mrkostya008 3 ай бұрын
roll your own auth brudda
@djordje1999
@djordje1999 3 ай бұрын
Yeaa, i seen people paying for comments on their projects like they can't make it themselfs...
@semyaza555
@semyaza555 3 ай бұрын
@@djordje1999people pay for comment sections??
@DarkDunkelheit
@DarkDunkelheit 3 ай бұрын
yo wtf why, lucia is amazing, next auth is so opinionated and a hassle to work with,
@liamkearn
@liamkearn 3 ай бұрын
JavaScript ahhh video.
@mr.random8447
@mr.random8447 3 ай бұрын
I’m raging right now
@grimm_gen
@grimm_gen 3 ай бұрын
Supabase auth is supa easy to set up
@hrqmonteiro
@hrqmonteiro 3 ай бұрын
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-ai
@perc-ai 3 ай бұрын
Ben we tried to warn you. Stop using these silly startup auth providers. Just learn AWS / GC for the love of all good things.
@hasan5984
@hasan5984 3 ай бұрын
Which service should I learn to do things that I do with Lucia
@bmdavis419
@bmdavis419 3 ай бұрын
Already migrated off to custom auth lol
@konrad2431
@konrad2431 3 ай бұрын
You mean Amazon Cognito?
@hasan5984
@hasan5984 3 ай бұрын
@@bmdavis419 how?
Svelte 5 Ruined Svelte (and that's why I love it)
12:37
Ben Davis
Рет қаралды 13 М.
Need animations? Use this library.
12:24
Theo - t3․gg
Рет қаралды 74 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
How web applications are secured
19:54
Web Dev Cody
Рет қаралды 29 М.
What Makes A Great Developer
27:12
ThePrimeTime
Рет қаралды 229 М.
Next.js Credentials Auth Made Easy with Better Auth
1:07:38
Cand Dev
Рет қаралды 7 М.
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 201 М.
5 Genius Strategies to Dominate the Anti-Startup Movement
12:57
Enrico Tartarotti
Рет қаралды 418 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 97 М.
Lucia Auth is Being Deprecated
8:57
Coding Garden
Рет қаралды 6 М.
How and Why I Rebuilt my SAAS App
13:24
Ben Davis
Рет қаралды 23 М.