The 8 min vids continue! Keep it up Cody, Your onto something good here!
@allenbythesea4 ай бұрын
good stuff, currently auth is some of the most unnecessarily complex stuff in software dev. This goes back towards simplification.
@codingwithjamal4 ай бұрын
@@allenbythesea Whats the complex form of auth?
@iraniannuclearprogram33824 ай бұрын
Simplification? Are you delusional? This is complete mess.
@allenbythesea4 ай бұрын
@@iraniannuclearprogram3382 it is but its also way less complex than a lot of the stuff we have today. I am of the opinion that the insane complexity of auth systems these days makes them considerably less secure. Which is why this, though complex, is less complex then configuring / deploying a lot of the systems available today.
@codingwithjamal4 ай бұрын
@@iraniannuclearprogram3382 I was asking whats a more complex version if auth, this is simple to me
@MasterEd7254 ай бұрын
Absolutely loved this video! It's short, concise, and straight to the point. Thanks for making such an informative piece so easy to understand. Great job Cody!
@shaked12334 ай бұрын
There is no shorter, better, more straight to the point, lucia auth implementation video than this. Thanks
@jitxhere4 ай бұрын
Cody thanks for this. I will extend this and make it fully functional like a complete auth email verification, password reset, 2 factor auth, google auth, GitHub auth and will add rate limiting
@inderjotsingh58684 ай бұрын
bro , can you share the repo
@justinoconnell73074 ай бұрын
Great video, I got it up and running. I looked at the lucia docs few weeks back and couldn't be bothered to figure it out myself at the time
@BreuXBranco4 ай бұрын
You’ve been killing with these tuts my dude
@ItsLaxe4 ай бұрын
had to figure out lucia auth (with oauth) a few weeks back. it was a pain with the docs but overall the code is pretty simple, glad i set it up instead of relying on another auth library
@iraniannuclearprogram33824 ай бұрын
Now you rely on this messy auth library with completely braindead docs. Congrats
@kushyzee2 ай бұрын
@@iraniannuclearprogram3382I see you in most comments trying to downgrade Lucia, are you paid to do this? Yeah, Lucia is a mess and nextAuth is awesome, nice take
@LDev00Ай бұрын
@@iraniannuclearprogram3382which is free and customisable
@deepjyotideb11734 ай бұрын
Finally! Been waiting for this for A while.
@SeibertSwirl4 ай бұрын
Nice! An 8 minute video?!?! Sheeeeshhh! Love ya
@nickwoodward8193 ай бұрын
Not chaotic, this was good. Thanks.
@xJaKoBz4 ай бұрын
I really like these shorter videos!
@nianight4 ай бұрын
2:55 was very unfortunate cut. How did you fix that wrong type error?
@ga1az3 ай бұрын
Delete the _: any export async function signup(formData: FormData){}
@LDev00Ай бұрын
Cannot find name ‘signup’. Import it
@nasko2356794 ай бұрын
The 1 thing I don't like about Lucia is that it queries the DB every time you need to check for authentication. I guess that's not a Lucia issue, more of a DB Session issue, but if you're interracting with an api/trying to fetch data securely that's a lot of queries to make sure you get the data to the properly authenticated user every time.
@yonluc4 ай бұрын
If you are fine with it , you can try to cache the result of the check for authentications for a short period of time (5mins).
@WebDevCody4 ай бұрын
I think it’s an issue when it’s actually a measurable issue. If your server and database are close in proximity (which they should honestly be), we are talking milliseconds to look up a single session record. You can also use reddis
@SirMeowMeow4 ай бұрын
Sounds like you just don't like sessions. Lucia can do stateless JWT too.
@nasko2356794 ай бұрын
@@SirMeowMeow I love sessions because they give you the ability to authorize users in real time unlike JWT tokens. I just don't know how bad it is for performance to have to do an additional query on every authorized request to the server. As Cody said, it's not an issue until it's measurable.
@hello192864 ай бұрын
This is a benefit in certain applications, especially ones that need a high level of security. Sometimes you want to ban users/hackers and instantly revoke their access. This becomes even more important for fintech.
@alexandergeorgesquire2202 ай бұрын
Much appreciated and please do make that library
@Fujiyama_Senju2 ай бұрын
What colour theme is he using?
@ronny-andrebendiksen41374 ай бұрын
You should write that library specifically for Drizzle and Next.js!
@aizen_tv15364 ай бұрын
You're gonna pay me for these additional 19s blud
@WebDevCody4 ай бұрын
Please don’t hurt me
@northerncoder4 ай бұрын
Any chance you could attempt to create a convex adapter for Lucia. So far I have been unable to do so.
@WebDevCody4 ай бұрын
join my discord and ask Daria, he has tried hooking convex up with lucia I think
@w_tchd0g2 ай бұрын
great video! ngl i still used next-auth cuz they got far better documentation that lucia... dont want to rely on yt videos for something important like auth... UPD: i use lucia now lol
@WebDevCody2 ай бұрын
😆
@PeterSahanaya29 күн бұрын
Lol now lucia is deprecated 😂
@joostschuur4 ай бұрын
Are there any advantaged of Next Auth at this point? Other than momentum? Looks like, thanks to artic, Lucia also has a ton of auth providers it can use.
@WebDevCody4 ай бұрын
Because building all those login flows took me a lot of time and I’m still fixing small bugs in that repo. It’s nice having something that basically works out of the box. But I guess that’s what you mean by momentum
@ben-gibbАй бұрын
Shouldn’t that validate requests be in the middleware?
@ben-gibbАй бұрын
Sorry, serious question.. is it or no?
@PURPLECUT4 ай бұрын
does lucia do csrf for you? doesn't seem like it
@steiner10524 ай бұрын
Thank you! one question.. What is the advantage of Lucia vs Next-auth?
@SirMeowMeow4 ай бұрын
Lucia is far more customized but you must do more yourself.
@jeongjehoon24 ай бұрын
Next-Auth is totally shit. It's TOO opininated and abstracted for just auth. It makes you crazy when little quirks pops up that you cannot fix until NextAuth team fixes or manually edit them. Easier Usage = More Abstraction = Less Customization, Less Flexible
@Damien1990UK4 ай бұрын
Thank you for the videos. Currently going through the online auction app video and get stuck early on as apparently Next.js, drizzle/postgres and Auth.js don't get on well together with error messages like the one below appearing: Module build failed: UnhandledSchemeError: Reading from "cloudflare:sockets" is not handled by plugins (Unhandled scheme). Hopefully switching the auth to Lucia will help as had no problems before putting the auth in.
@PeterSahanaya29 күн бұрын
And now lucia auth deprecated 😂
@AbuBakr14 ай бұрын
Please Can we use Lucia in nextjs Middleware?
@naughtiousmaximus78534 ай бұрын
Thank you a lot.
@Joey-o7p4 ай бұрын
Thanks!
@codingwithjamal4 ай бұрын
thank you
@rcpro814 ай бұрын
yes!
@wobsoriano4 ай бұрын
How to setup Clerk in 5 minutes? :p
@googoochu39234 ай бұрын
Im using kinde until authjs 5 is stable
@WebDevCody4 ай бұрын
it'll be stable in 4 years
@kal.leroux4 ай бұрын
sorry but I have to ask, what type of content do you want to make because what you are doing now is just so average and doesn't have any vision or goal you are just doing thing that doesn't have or give a plus to your subscriber. I am not trying to make fun of you or anything else it's just that I feel like what you are doing with this channel now is really different than what it was before ( before I was really feeling like you wanted to educate you viewer and help them become more senior )
@WebDevCody4 ай бұрын
Thanks for the feedback! I’m just trying some new content honestly. At this point I’ve made so many videos that I’m a bit burned out, so these type of videos are fun to challenge myself and some comments I’m getting show people like the concise nature of the videos.
@iraniannuclearprogram33824 ай бұрын
Complete mess. A disaster. Is this some kind of curse in Javascript?
@cdbrw4 ай бұрын
keyboard sounds soooooo gooood 🫣
@WebDevCody4 ай бұрын
Asmr
@fleetfoot90342 ай бұрын
@@WebDevCody what keyboard/switches are you using? love the sound
@josh.manders4 ай бұрын
> How to setup Lucia auth in Next.js (in 8 minutes) > video length: 8m20s Unsubscribed
@WebDevCody4 ай бұрын
Math.floor rounding
@kyrregjerstad4 ай бұрын
Would love to see what you would come up with for a auth library tailored for drizzle and nextjs! Getting Lucia to work with the Next middleware is also a huge pain 🥲
@engelshentenawy3 ай бұрын
does @node-rs/argon2 package work for you, trying to get it to work with sst v2, unsuccessfully ?