No video

I made a free next.js template using lucia auth (oauth, email, magic link, forgot password)

  Рет қаралды 8,658

Web Dev Cody

Web Dev Cody

Күн бұрын

link to code: github.com/webdevcody/next-dr...
it uses shadcn as well
Become a YT Members to get extra perks!
/ @webdevcody
My Products
🏗️ WDC StarterKit: wdcstarterkit.com
📖 ProjectPlannerAI: projectplannerai.com
🤖 IconGeneratorAI: icongeneratorai.com
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 74
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Ай бұрын
Dude you are missing content opportunity here. Why not to record a mini series explaining each part of this template? It's top content
@bnssoftware3292
@bnssoftware3292 Ай бұрын
Thank you! Smart move to get some more interest in your forthcoming starter kit!
@asaprogrammer_
@asaprogrammer_ Ай бұрын
This is awesome man. Starred! 🌟
@sealone777
@sealone777 Ай бұрын
This is exactly what I needed! Thanks!
@kyrregjerstad
@kyrregjerstad Ай бұрын
This is super helpful! I've been looking into integrating passkeys into Lucia, would be awesome to see that as an option as well
@olivebishop3794
@olivebishop3794 13 күн бұрын
passkeys will also come in handy @web dev cody
@Love-id8gu
@Love-id8gu Ай бұрын
Thank you so much! I was so looking forward to this! Love you!!! ❤😊👍
@kovs-game
@kovs-game Ай бұрын
Thanks for your contribution to everyone who are trying to implement auth in Next.JS, waiting for the full starter kit :)
@iken_ar
@iken_ar Ай бұрын
Thank you. I was just going to look for a template, so this is perfect timing.
@wasif4068
@wasif4068 22 күн бұрын
bro can you help me
@Pyrospower
@Pyrospower Ай бұрын
Really useful, thanks!
@chrisalonzo1252
@chrisalonzo1252 Ай бұрын
Very helpful as always 💯
@yassinesafraoui
@yassinesafraoui Ай бұрын
This is really useful, I think you just saved us a lot of time since this is the hard part about auth, getting the basics working
@sudam-d
@sudam-d 29 күн бұрын
I've learnt from you more than any youtuber out there. I very much appreciate the content
@novaa977
@novaa977 Ай бұрын
Thank you cody!
@loorinho
@loorinho Ай бұрын
Just started using Lucia recently and i must say this template will save me some valuable minutes setting up a new project. Great video "mentor". Much love from Uganda
@perminusgaita
@perminusgaita 9 күн бұрын
Sebo!
@w_CSGO
@w_CSGO Ай бұрын
Thank you man!
@paulofreireslaw
@paulofreireslaw Ай бұрын
Thank you so much! I just built my first end to end type safe form w/ auth required. Still need to play w/ the admin vs not admin authorization stuff, but very promising! You the man! Keep up the good work!
@paulofreireslaw
@paulofreireslaw Ай бұрын
@@giantseaturtle I guess my previous reply didn't go through due to including a link. I'm going to start with admin or not authorization. According to the zsa docs on chaining procedures, it looks like I can just chain a zsa procedure onto the authenticatedAction procedure and check there whether the user is admin or not. Will probably just use an additional column in the users table for an admin boolean. I'm sure different roles and levels of authorization will be more complicated, but I'm starting small with all of this because I'm new to literally everything: next, react, ts, zod etc
@deepjyotideb1173
@deepjyotideb1173 Ай бұрын
Good stuff, thanks a lot.
@OnlyJavascript
@OnlyJavascript Ай бұрын
this is amazing. thanks. I will try to add 2fa to this and role based control.
@wesammuneer8926
@wesammuneer8926 Ай бұрын
Omg just what I need 😍
@ronny-andrebendiksen4137
@ronny-andrebendiksen4137 Ай бұрын
Yes, thank you!
@nemeziz_prime
@nemeziz_prime Ай бұрын
This is pretty cool
@sourabhR4ikwar
@sourabhR4ikwar Ай бұрын
This is super awesome
@ts3798
@ts3798 Ай бұрын
Beautiful.
@notrab
@notrab Ай бұрын
Awesome demo! I'd love to contribute, I was just building a similar demo with Turso + Drizzle.
@kalubuikem
@kalubuikem Ай бұрын
I would love to see these features with auth js...do you have a video on that already
@Sahil-me5kg
@Sahil-me5kg Ай бұрын
thanks man
@LeighBriody
@LeighBriody Ай бұрын
This is why Cody is the GOAT
@Paul_Aderoju
@Paul_Aderoju Ай бұрын
Thanks
@danielmazout
@danielmazout Ай бұрын
im also working on similar template but im trying to add two factor auth, and two factor validation for critical action (in app) but its not easy as just implementing lucia oauth
@afragerami737
@afragerami737 Ай бұрын
Is it with Prisma? and can we add sms otp to this too? Thanks for your great content Cody!
@leonardsam7083
@leonardsam7083 Ай бұрын
Thank you for this. Wanted to setup Lucia but the docs are all over the place.
@WebDevCody
@WebDevCody Ай бұрын
It’s a little chaotic 🤣
@SeibertSwirl
@SeibertSwirl Ай бұрын
Good job bub!!! Love ya!!! Hottie over here!!!
@WebDevCody
@WebDevCody Ай бұрын
😘
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Ай бұрын
When are you planning to release your boilerplate, mate?
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Ай бұрын
How are you switching between SQLite locally and Turso in prod? Could you please share your setup in video please?
@tomascarignano5002
@tomascarignano5002 23 күн бұрын
if you npm run build on a project such as this one, ALL routes are now dynamic. This is due to using cookies from "next/headers". Does anyone know if there is an alternative pattern for keeping some of that markup static (and not calculate it all on the server on every request)?
@dailynews7822
@dailynews7822 Ай бұрын
I have deloyed it on Vercel and have Errors. The deloyment is not completed
@Icerytw
@Icerytw 6 күн бұрын
Thanks for the codes. But I'm wondering how can I easily change db to mongo? Never use drizzle before. -..-
@patolorde
@patolorde Ай бұрын
Lucia, Shadcn, drizzle and others are all maintained by just a few people, does that pose risk of these projects being stopped? Sorry if its a stupid question.
@Tanner-cz4bd
@Tanner-cz4bd Ай бұрын
ShadCN is just tailwind, won't matter. The others yes.
@amadeustech
@amadeustech Ай бұрын
Shadcn Is not a package, it's a library on top of Radix which is maintained by a bigger team so in that case it doesn't impact too much if shadcn gets discontinued it is just a great set of component wrapper with variants. Drizzle popularity has increased really fast, even Astro is using for astro:db I guess. So maybe the will expand. I don't know too much about Lucia in terms of their dev team, but auth is something we can setup ourselves if Lucia gets discontinued we can find another great options nor our self implementation.
@WebDevCody
@WebDevCody Ай бұрын
lucia is simple enough to refactor away from honestly, drizzle is a bit more complex and I would say there is a bit of risk there especially since it's still "beta" and maintained by someone in an active country at war
@joostschuur
@joostschuur Ай бұрын
Thoughts on zsa vs next-safe-action?
@WebDevCody
@WebDevCody Ай бұрын
I’ll need to try to compare them. Next safe actions recently released version 7 which I’ll need to try
@joostschuur
@joostschuur Ай бұрын
@@WebDevCody Sounds like a great little video idea. David Gray just did one on next-safe-actions
@torreydev
@torreydev Ай бұрын
Since you are using resend for email auth here, have you thought about any rate-limiting or verification methods? I've been looking into email providers and have been manually setting hard caps for my daily email limits, but I'm worried that a bad-actor could easily spam logins or contact form submissions and cap me out with spam.
@WebDevCody
@WebDevCody Ай бұрын
Depends on how you’re hosting. Honestly just setup a one function in memory rate limiter if hosting in a vps
@torreydev
@torreydev Ай бұрын
@@WebDevCody I'm talking more about rate-limiting the emails sent per day using resend. The costs can get pretty high pretty quick with resend.
@WebDevCody
@WebDevCody Ай бұрын
@@torreydev yeah I mean you need to add some type of limiter based on ip or the email the user is trying to use. I’ll add one to this template
@torreydev
@torreydev Ай бұрын
@@WebDevCody Even then, a malicious user could use multiple IPs and user clients to bypass that. For now I have just limited my sites using resend to only by able to send 100 emails per day, then it gets locked out. Just seems risky overall and it is lame to have another service where I need to worry about racking up a huge bill or hitting limits and losing functionality to my site.
@dailynews7822
@dailynews7822 Ай бұрын
I deloy it on Vercel and have Errors. What can I do next ?
@WebDevCody
@WebDevCody Ай бұрын
How do you expect me to help you if you don’t even paste the errors
@Tanner-cz4bd
@Tanner-cz4bd Ай бұрын
Can you connect this to a DB using drizzle
@WebDevCody
@WebDevCody Ай бұрын
it's using drizzle with sqlite (turso if you want a prod database)
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Ай бұрын
Why you have user, account AND profile tables? why not just two? why both account and profile?
@WebDevCody
@WebDevCody Ай бұрын
Keep public profile info separated for security reasons
@iraniannuclearprogram3382
@iraniannuclearprogram3382 Ай бұрын
@@WebDevCody thanks, this make sense. Still not sure about getUserAttributes usage. I see you only put id there. Is it ok to put all other stuff there?
@jacob_dmn
@jacob_dmn 20 күн бұрын
You have no idea how much time you are saving for crazy amount of people, I'm deeply appreciative to you, bless you 🌀
@semyaza555
@semyaza555 Ай бұрын
How does Lucia work with Expo/React Native?
@WebDevCody
@WebDevCody Ай бұрын
idk haven't tried it
@semyaza555
@semyaza555 Ай бұрын
@@WebDevCody Gah. That means I’ll have to give it a shot.
@wasif4068
@wasif4068 23 күн бұрын
No full tutorial?
@wasif4068
@wasif4068 23 күн бұрын
full tutorial please
@wasif4068
@wasif4068 23 күн бұрын
come on bro i need full tutorial I want to learn
@thejonte
@thejonte Ай бұрын
Chromium logo for google login?
@WebDevCody
@WebDevCody Ай бұрын
make a pr, help me out
How to setup Lucia auth in Next.js (in 8 minutes)
8:20
Web Dev Cody
Рет қаралды 8 М.
Oh, Auth Doesn't Have to Suck?
7:16
Josh tried coding
Рет қаралды 57 М.
1,000 Diamonds! (Funny Minecraft Animation) #shorts #cartoon
00:31
toonz CRAFT
Рет қаралды 38 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 35 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 17 МЛН
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 102 М.
I can't believe this is real
11:54
Theo - t3․gg
Рет қаралды 169 М.
3 ways to reduce the size of your docker images
17:20
Raghav Dua
Рет қаралды 6 М.
This self hosted emailer might just kill resend.io
7:10
Web Dev Cody
Рет қаралды 21 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 171 М.
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 984 М.
The most important function to write performant next.js apps
5:36
Web Dev Cody
Рет қаралды 16 М.
tRPC + NextJS App Router = Simple Typesafe APIs
19:18
Jack Herrington
Рет қаралды 76 М.
I can’t believe this stack is actually good
9:59
Ben Davis
Рет қаралды 9 М.
I Never Want To Build Authentication Any Other Way
2:03:20
Elliott Chong
Рет қаралды 17 М.
1,000 Diamonds! (Funny Minecraft Animation) #shorts #cartoon
00:31
toonz CRAFT
Рет қаралды 38 МЛН