Тёмный
No video :(

How to setup Lucia auth in Next.js (in 8 minutes) 

Web Dev Cody
Подписаться 231 тыс.
Просмотров 10 тыс.
50% 1

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

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@savdevv
@savdevv 2 месяца назад
The 8 min vids continue! Keep it up Cody, Your onto something good here!
@allenbythesea
@allenbythesea 2 месяца назад
good stuff, currently auth is some of the most unnecessarily complex stuff in software dev. This goes back towards simplification.
@codingwithjamal
@codingwithjamal 2 месяца назад
@@allenbythesea Whats the complex form of auth?
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Месяц назад
Simplification? Are you delusional? This is complete mess.
@allenbythesea
@allenbythesea Месяц назад
@@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.
@codingwithjamal
@codingwithjamal Месяц назад
@@iraniannuclearprogram3382 I was asking whats a more complex version if auth, this is simple to me
@heyjitendra
@heyjitendra 2 месяца назад
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
@inderjotsingh5868
@inderjotsingh5868 Месяц назад
bro , can you share the repo
@shaked1233
@shaked1233 2 месяца назад
There is no shorter, better, more straight to the point, lucia auth implementation video than this. Thanks
@ItsLaxe
@ItsLaxe 2 месяца назад
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
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Месяц назад
Now you rely on this messy auth library with completely braindead docs. Congrats
@MasterEd725
@MasterEd725 2 месяца назад
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!
@justinoconnell7307
@justinoconnell7307 2 месяца назад
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
@nickwoodward819
@nickwoodward819 28 дней назад
Not chaotic, this was good. Thanks.
@BreuXBranco
@BreuXBranco 2 месяца назад
You’ve been killing with these tuts my dude
@alexandergeorgesquire220
@alexandergeorgesquire220 18 часов назад
Much appreciated and please do make that library
@deepjyotideb1173
@deepjyotideb1173 2 месяца назад
Finally! Been waiting for this for A while.
@SeibertSwirl
@SeibertSwirl 2 месяца назад
Nice! An 8 minute video?!?! Sheeeeshhh! Love ya
@nasko235679
@nasko235679 2 месяца назад
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.
@yonluc
@yonluc 2 месяца назад
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).
@WebDevCody
@WebDevCody 2 месяца назад
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
@SirMeowMeow
@SirMeowMeow 2 месяца назад
Sounds like you just don't like sessions. Lucia can do stateless JWT too.
@nasko235679
@nasko235679 2 месяца назад
@@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.
@hello19286
@hello19286 2 месяца назад
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.
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Месяц назад
Complete mess. A disaster. Is this some kind of curse in Javascript?
@nianight
@nianight Месяц назад
2:55 was very unfortunate cut. How did you fix that wrong type error?
@ga1az
@ga1az Месяц назад
Delete the _: any export async function signup(formData: FormData){}
@xJaKoBz
@xJaKoBz 2 месяца назад
I really like these shorter videos!
@northerncoder
@northerncoder 2 месяца назад
Any chance you could attempt to create a convex adapter for Lucia. So far I have been unable to do so.
@WebDevCody
@WebDevCody 2 месяца назад
join my discord and ask Daria, he has tried hooking convex up with lucia I think
@Damien1990UK
@Damien1990UK 2 месяца назад
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.
@naughtiousmaximus7853
@naughtiousmaximus7853 2 месяца назад
Thank you a lot.
@joostschuur
@joostschuur Месяц назад
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.
@WebDevCody
@WebDevCody Месяц назад
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
@ronny-andrebendiksen4137
@ronny-andrebendiksen4137 2 месяца назад
You should write that library specifically for Drizzle and Next.js!
@codingwithjamal
@codingwithjamal 2 месяца назад
thank you
@user-bj1rj4rv3k
@user-bj1rj4rv3k 2 месяца назад
Thanks!
@rcpro81
@rcpro81 2 месяца назад
yes!
@PURPLECUT
@PURPLECUT 2 месяца назад
does lucia do csrf for you? doesn't seem like it
@AbuBakr1
@AbuBakr1 Месяц назад
Please Can we use Lucia in nextjs Middleware?
@steiner1052
@steiner1052 2 месяца назад
Thank you! one question.. What is the advantage of Lucia vs Next-auth?
@SirMeowMeow
@SirMeowMeow 2 месяца назад
Lucia is far more customized but you must do more yourself.
@jeongjehoon2
@jeongjehoon2 Месяц назад
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
@aizen_tv1536
@aizen_tv1536 2 месяца назад
You're gonna pay me for these additional 19s blud
@WebDevCody
@WebDevCody 2 месяца назад
Please don’t hurt me
@cdbrw
@cdbrw Месяц назад
keyboard sounds soooooo gooood 🫣
@WebDevCody
@WebDevCody Месяц назад
Asmr
@kal.leroux
@kal.leroux 2 месяца назад
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 )
@WebDevCody
@WebDevCody 2 месяца назад
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.
@wobsoriano
@wobsoriano 2 месяца назад
How to setup Clerk in 5 minutes? :p
@alaskandonut
@alaskandonut Месяц назад
Hey I think it might be pronounced “loo-shuh” like St. Lucia.
@googoochu3923
@googoochu3923 2 месяца назад
Im using kinde until authjs 5 is stable
@WebDevCody
@WebDevCody 2 месяца назад
it'll be stable in 4 years
@josh.manders
@josh.manders 2 месяца назад
> How to setup Lucia auth in Next.js (in 8 minutes) > video length: 8m20s Unsubscribed
@WebDevCody
@WebDevCody 2 месяца назад
Math.floor rounding
@kyrregjerstad
@kyrregjerstad 2 месяца назад
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 🥲
@engelshentenawy
@engelshentenawy Месяц назад
does @node-rs/argon2 package work for you, trying to get it to work with sst v2, unsuccessfully ?
@WebDevCody
@WebDevCody Месяц назад
I'm not using sst right now so I'm not sure
@AbuBakr1
@AbuBakr1 Месяц назад
Please Can we use Lucia in nextjs Middleware?
Далее
Oh, Auth Doesn't Have to Suck?
7:16
Просмотров 60 тыс.
Секрет фокусника! #shorts
00:15
Просмотров 44 млн
So, you want to be a programmer?
20:43
Просмотров 285 тыс.
How I structure my next.js applications
23:19
Просмотров 26 тыс.
Why I don't use React-Query and tRPC in Next.js
18:58
Zoom Picked My Stack 👀
16:30
Просмотров 74 тыс.
What Theo Won't Tell You About Next.js
8:37
Просмотров 87 тыс.
The Story of Next.js
12:13
Просмотров 568 тыс.
A New Drag And Drop Library For EVERY Framework
16:02
Просмотров 105 тыс.