Oh, Auth Doesn't Have to Suck?

  Рет қаралды 50,090

Josh tried coding

Josh tried coding

3 ай бұрын

This auth library and all the utilities that come with it are seriously impressive work. It's cool to see a very different, less abstract approach to going about auth.
-- sources
primeagen interview: • ThePrimeagen: VIM (btw...
lucia article: github.com/lucia-auth/lucia/d...
-- my links
saas: www.animate-code.com/
newletter: www.joshtriedcoding.com/
discord: / discord
github: github.com/joschan21

Пікірлер: 139
@codernerd7076
@codernerd7076 3 ай бұрын
Auth without 3rd party! Need one full tutorial 😮
@kazeemquadri01
@kazeemquadri01 3 ай бұрын
kzbin.info/www/bejne/Z363qnasiJVojJYsi=iuYngjZsbCy7zwH4 I found this very explanatory tutorial it might help
@M1a2n3o43
@M1a2n3o43 3 ай бұрын
i second this.
@irfanulislamjishan4416
@irfanulislamjishan4416 3 ай бұрын
yaap
@adnanamin3666
@adnanamin3666 3 ай бұрын
@fcnealvillangca7943
@fcnealvillangca7943 3 ай бұрын
Yeah i hate 3rd party auth except firebase auth
@user-of6ls2ng5l
@user-of6ls2ng5l 3 ай бұрын
The war between Prisma and Drizzle is even in the authorization video
@tuvshinbayartuvshinzul8489
@tuvshinbayartuvshinzul8489 3 ай бұрын
Like Goku vs One Punch Man
@3b00d09
@3b00d09 3 ай бұрын
lucia is my love, really glad to see you made a video on it! im a big fan of the library
@jodp
@jodp 3 ай бұрын
Just heard about this last week, glad to see you on top of this recent stuff!
@RonnieDenzel
@RonnieDenzel 3 ай бұрын
This is what makes me feel that next auth gets wrong,its implementation is too high level,I'm at least happy that this library strikes a balance Thanks Josh💯
@alasdairsmith0491
@alasdairsmith0491 3 ай бұрын
I'm not sure we can discuss the concept of "abstraction" as either good or bad unless you have the context of the consumers of the abstraction. I appreciate your use of the phrase "right level of abstraction" as I think that starts to indicate that the appropriateness of the abstraction is very much a sliding scale.
@branislavbrincko7237
@branislavbrincko7237 3 ай бұрын
I hope this library gets much more attention because Nextauth’s decision to not support email password auth has been sooooo frustrating.
@tommysaucey6095
@tommysaucey6095 3 ай бұрын
what about this fact ? you can actually use credentials with nextauth
@oleh1
@oleh1 3 ай бұрын
what's the usecase of email password auth?
@daycred
@daycred 3 ай бұрын
It's so condescending. Even if you just want to enable in dev/staging or internal use, all of which are very valid use cases
@over9000andback
@over9000andback 3 ай бұрын
@@oleh1to not depend on a third party idp
@CoryTheSimmons
@CoryTheSimmons 3 ай бұрын
Auth companies hire (buy) these auth lib maintainers and then the auth libs go to 💩. Auth0 did it with Passport.js. Clerk is doing it with NextAuth. Basically, if you want a job in tech in 2024, just write a good OSS auth library and they are forced to hire you.
@ThaumesD
@ThaumesD 3 ай бұрын
I really like this take! Good job explaining this!
@erics2133
@erics2133 3 ай бұрын
Very interesting, and your comments really make me feel more comfortable with going with Lucia 3.0 vs AuthJS or rolling my own.
@justindoane7482
@justindoane7482 3 ай бұрын
Been also using lucia v3, love it!
@manuelsanchezweb
@manuelsanchezweb 2 ай бұрын
We need a full tutorial on this!!! Great video, Josh!
@Gustavo-bi4hv
@Gustavo-bi4hv 3 ай бұрын
Yesterday I was studying NextAuth V5 and was a headache to implement a simple credentials sign-in feature. The documentation is horrible. It's just me or anyone else think that doc is horrible? I felt dumb.
@darwinnarro2889
@darwinnarro2889 3 ай бұрын
It is. But is a really good tool if you know what are you doing
@alphhs5260
@alphhs5260 3 ай бұрын
Yeah, the doc is pretty bad
@marvinkr
@marvinkr 3 ай бұрын
The worst doc in human history
@boniedwin
@boniedwin 3 ай бұрын
agree next auth docs is hell to read
@Gustavo-bi4hv
@Gustavo-bi4hv 3 ай бұрын
@@marvinkr Yeah. Cant remember any worse than that.
@JukkaPekkaKeisala
@JukkaPekkaKeisala 2 ай бұрын
I have tried Kindle, NextAuth and Clerk but haven't felt home in any of them. I like abstractions that Lucia seems to deliver. I will give a spin. Thanks for video.
@mettle_x
@mettle_x 3 ай бұрын
There's more to say about "Abstraction". Abstractions that don't give you granular controls can also be good if the things they're abstracting are **not intended to work with** for the most cases. Thus it sets up a recommended design pattern. Customization along with sane defaults doesn't work all the time. If you think about it, React is such an example of the abstraction. Monads can be regarded in the same category.
3 ай бұрын
Amazing! I will give it a try
@milos018
@milos018 3 ай бұрын
"In the beginning you want results, in the end you want control" by someone on the internet. Works here too :)
@KSalvatore
@KSalvatore 3 ай бұрын
Good library need to try it to learn. I used next-auth and don't understand exactly how it works. And I kinda getting why non abstracts good. I recently learning prisma It is very easy. Can you do a comparison or explain how drizzle works from prisma users point of view. Thanks😊
@MyGeorge1964
@MyGeorge1964 2 ай бұрын
Dude, heard of Aceternity UI - it amazing
@user-sn5ee1oi2v
@user-sn5ee1oi2v 3 ай бұрын
Josh, love your videos. I have a doubt. Is there still caching issue in NEXT JS 14 ? Does server actions resolve all these caching issues ?
@codinginflow
@codinginflow 3 ай бұрын
I've implemented Lucia auth today and I much prefer it over Next-auth. It doesn't force you into ugly design patterns (both backend & UI).
@tylerdrabek1592
@tylerdrabek1592 3 ай бұрын
Please for the love of God make a full deep dive turorial
@manalavi
@manalavi Ай бұрын
This is great. Do they have the example / resources on how to use with fastify server. Need this to build it in my application.
@BeyondLegendary
@BeyondLegendary 3 ай бұрын
Impressive, very nice. let's see Paul Allen's auth.
@itsfarseen
@itsfarseen 3 ай бұрын
Bro you make so much sense ❤ youre the messiah we needed after being fed the enterprise bullshit for 20 years since the invention of Java.
@mr.random8447
@mr.random8447 3 ай бұрын
The benefit of higher level of abstractions in terms of UI library is if you need to enforce strong design constraints and consistency
@ChichaGad
@ChichaGad 3 ай бұрын
Great video Josh! I have to admit that Auth.js is cancer, especially their docs are a huge chaotic contradictory mess Regardless of whether v4 or their latest v5 I was waiting for Lucia 3 to come out because this version doesn't force the usage of an adapter, and I'm glad they brought this change For now I can safely say I'm happy with switching to Lucia, especially because their abstraction still gives me full control of how, why, when, and where I want something
@raymondmichael4987
@raymondmichael4987 3 ай бұрын
I need full example with this, using different auth providers and linking user if they happen to have more than one provider 😊
@yousofscodingadventures
@yousofscodingadventures 3 ай бұрын
Banger video
@asadsalehumar1011
@asadsalehumar1011 3 ай бұрын
exactly, the right abstraction!
@noelpena4567
@noelpena4567 3 ай бұрын
Am I wrong in thinking that abstraction is good for features like Auth? I understand that it depends on the project/scenario but wondering if I am missing something. I use third-party Auth providers that provide abstraction because I don't necessarily want to know or handle everything under the hood. Thoughts?
@aldierygonzalez7249
@aldierygonzalez7249 3 ай бұрын
I agree, but there are so many times where you need to do things where the best solution would be to modify the authentication flow. When these situations happen, I think it gets to a point where abstractions feel like a barrier to your solution rather than a helper. Things like syncing a database from an external Api on login gets really hard when you don't have access to your own login function.
@antares-the-one
@antares-the-one 3 ай бұрын
try implementing auth with normal error handling when errors are on the credentials page, not on complete separate one. What kind of ux is that?
@JD-qo9wk
@JD-qo9wk 2 ай бұрын
Possible to use Lucia with React Front-End + Python FastAPI Backend?
@BhideSvelte
@BhideSvelte 3 ай бұрын
He is 19yrs old
@shakapaker
@shakapaker 3 ай бұрын
How to react?
@s.adnansami5106
@s.adnansami5106 2 ай бұрын
​@@shakapaker Badum tss!
@sureshmutluru4532
@sureshmutluru4532 3 ай бұрын
Full tutorial please
@AlanDanielx
@AlanDanielx 3 ай бұрын
Lets give some love to Lucia
@raymondmichael4987
@raymondmichael4987 3 ай бұрын
There goes my auth stack; you sold it really well
@BhideSvelte
@BhideSvelte 3 ай бұрын
He is god i just love his work a lottt
@kathanmehtaa
@kathanmehtaa 18 күн бұрын
what auth do u use josh? Clerk, Lucia, Nextauth ?
@olivermarkey4441
@olivermarkey4441 3 ай бұрын
Dude I saw this on Twitter and I’m so annoyed bc I just implemented nextAuth but if this is good I’ll switch- I saw a boilerplate that includes stripe pre built which is amazing.
@bullettime2808
@bullettime2808 2 ай бұрын
I would love to see a tutorial on Authentication that works in both Next js and public clients like SPAs and mobile apps like React Native kr Flutter without using a paid service like Clerk
@salihyil2
@salihyil2 3 ай бұрын
How do you learn so much stuff, and when do you learn it?
@theether5993
@theether5993 3 ай бұрын
I have seen this guy, before v1, when it used to be for sveltekit.
@lasindunuwanga5292
@lasindunuwanga5292 3 ай бұрын
That introduction part is so true and sad .NET has such an annoying part. I am so mad at it. It has abstracted out everything so it cannot be modified for our special use cases. Instead build it from the ground 0
@namestarlit
@namestarlit Ай бұрын
less abstraction, huh... I like it
@a1x5h04
@a1x5h04 3 ай бұрын
Every Josh Thumbnail: 😏
@xya6648
@xya6648 3 ай бұрын
The title got me cracking up! OhAuth -> OAuth lmao
@Chris...S
@Chris...S 3 ай бұрын
Wondered how many actually got that
@neociber24
@neociber24 3 ай бұрын
Now we need an abstraction over Lucia to support all: Password, Social, Passwordless, etc...
@Michael-lg6nv
@Michael-lg6nv 18 күн бұрын
Is it also possible to use Lucia Auth without Typescript?
@Gustavo-bi4hv
@Gustavo-bi4hv 3 ай бұрын
Please, do a full tutorial with credentials and OAuth login. It would be amazing!
@iangithinji1452
@iangithinji1452 Ай бұрын
Is Lucia better than Clerk? Someone answer
@dhaw
@dhaw 3 ай бұрын
single guys rocks 🤣
@maxgarcia4547
@maxgarcia4547 3 ай бұрын
Vue Composition API flashbacks
@cb73
@cb73 3 ай бұрын
I'm sure the folks at Radix are stoked you said Shadcn is just a collection of primitives. :-D
@anonanon7368
@anonanon7368 2 ай бұрын
full tutorial pls
@supermamoru
@supermamoru 3 ай бұрын
Authentication is always a pain when I have to recode it every single time 😂
@irfanulislamjishan4416
@irfanulislamjishan4416 3 ай бұрын
You should make one auth tutorial without any third party library.
@mirozxl
@mirozxl 3 ай бұрын
one thing issue with lucia and others like auth js is lack of proper resources and documentation. Would love a tutorial on lucia
@riolly
@riolly 2 ай бұрын
Cool
@dan_____
@dan_____ 3 ай бұрын
NextAuth was like "we cba to add credentials authentication" and they called it a feature 🤣
@prodfragment
@prodfragment 3 ай бұрын
Interesting. NextJS was smoking crack while creating NextAuth. From a quick glimpse, I can tell it's better
@filipniklas
@filipniklas 3 ай бұрын
Supertokens
@anlukinha8764
@anlukinha8764 3 ай бұрын
It is basically a Shadcn for Auth.
@anlukinha8764
@anlukinha8764 3 ай бұрын
ps.: I wrote this comment before shadcn appeared on the video lol
@dnbull
@dnbull 3 ай бұрын
Lucia made by a teenager, legendary!
@AbhiShake-pl3cf
@AbhiShake-pl3cf 3 ай бұрын
Better than nextauth? I dont really like clerk
@christopherkapic
@christopherkapic 3 ай бұрын
It's a bit more work than NextAuth but overall I think it's better. NextAuth is easy because it's heavily abstracted, which can be a bad thing. Also NextAuth is in kind of a weird place wrt development lifecycle and documentation.
@itsfarseen
@itsfarseen 3 ай бұрын
0:38 Why is he single 😢
@jitx2797
@jitx2797 3 ай бұрын
I just love lucia. It works. It also supports Astro.
@ShekarGoud8055
@ShekarGoud8055 3 ай бұрын
“I have reading comprehension and the attention span of a second grader” Relate 100
@alastairtheduke
@alastairtheduke 3 ай бұрын
I think this is generally a good idea. However, in the OAuth case, you really have to know how the OAuth flow works...and to be honest, I think this is actually the biggest hurdle to implementing OAuth.
@nazarshvets7501
@nazarshvets7501 3 ай бұрын
Yea, and on the other side is framework-dependent poorly documented opinionated library(micro-framework). Learn flow once, implement everywhere, don't be a frameworker
@paw565
@paw565 3 ай бұрын
I just use django ❤
@jovrx
@jovrx 18 күн бұрын
Seems like no one got the joke in the title? 😄
@xav_624
@xav_624 3 ай бұрын
Great content. Lucia is awesome
@samislam2746
@samislam2746 3 ай бұрын
We call this a headless library
@mubin-ansari
@mubin-ansari 3 ай бұрын
Wake up babe, new auth library just dropped
@greatnile
@greatnile 2 ай бұрын
am I too old or this is the modern rewrite of passportjs?😂
@aaronwolbach9880
@aaronwolbach9880 3 ай бұрын
You shouldn't implement authentication. You should buy it.
@iAbhijeetShukla
@iAbhijeetShukla 2 ай бұрын
next-auth is crap next-auth is crap next-auth is crap next-auth is crap next-auth is crap next-auth is crap
@xbozo.
@xbozo. 3 ай бұрын
imo nextauth is shit to deal with, they turn things much more complicated then they should be
@AkashLayal
@AkashLayal 3 ай бұрын
Second. ❤
@codewithmastery
@codewithmastery 3 ай бұрын
first
@user-ru3jc8tf1x
@user-ru3jc8tf1x Ай бұрын
This tool sucks, i prefer auth0 or eartho
A Better Way to Write APIs?
12:00
Josh tried coding
Рет қаралды 84 М.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 4,3 МЛН
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Рет қаралды 6 МЛН
У мамы в машине все найдется
00:38
Даша Боровик
Рет қаралды 2,9 МЛН
SvelteKit Auth in 15 Minutes
14:10
Ben Davis - Tech
Рет қаралды 4,4 М.
Build Your First AI Chatbot in 8 Minutes (with Next.js & OpenAI)
8:02
Master Codebender
Рет қаралды 2,3 М.
The Problem With UUIDs
6:36
Josh tried coding
Рет қаралды 66 М.
We Need to Talk About Redis.
14:55
Josh tried coding
Рет қаралды 87 М.
Vercel Gave Up On Edge
17:50
Theo - t3․gg
Рет қаралды 95 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 542 М.
4 UI Design Tools I Can't Live Without
5:08
Josh tried coding
Рет қаралды 65 М.
Testcontainers have forever changed the way I write tests
12:11
Dreams of Code
Рет қаралды 99 М.
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 1,9 МЛН
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 10 МЛН
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 2,5 МЛН
Apple ХОЧЕТ, чтобы iPhone ЛОМАЛИСЬ чаще?
0:47
ÉЖИ АКСЁНОВ
Рет қаралды 2,1 МЛН
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 46 МЛН