Another great tutorial, was cool to learn actually inserting data into the DB in this one, as well as setting up the custom inputs. Very keen for the next one.
Thanks for sharing would love to see you create a video using the T3 stack, also we are building a SaaS project so how would you handle Tenants permissions in Next-Auth.
Ethan, i am having trouble with an issue brother. I have seperated my app dir into two root group which are (auth) and (pages) folders. so i wanna protected my (pages) root folder which contains all of my rootes but i dont wanna include my auth folder which containes "/login" and "register" to protection. the problem is that, i cant write in middleware.ts file that, except (auth) and its sub rootes. only (pages)/:path*
The beta docs just say "coming soon" for Middleware but I did some experimenting locally. It looks like the middleware config should NOT include the "(folders)", instead, just match the paths that will be URLS. For example, I made "/app/(auth)/login/page.tsx", which should be an unprotected page. The middleware config to protect OTHER routes but leave that unprotected is: export { default } from 'next-auth/middleware' export const config = { matcher: ['/((?!register|api|login).*)',] } It protects all routes EXCEPT those listed in the regex. So "/register", "/login", and all of "/api". So don't use the "(auth)" and "(pages") -- target the URLS the browser will see.
I think productivity and simplicity is key. Leveraging Supabase to its fullest, would simplify. Plus, we can upload files and even have a vector DB… if you consider on top realtime updates, pretty much all covered… Without this trpc shit, just leverage your backend. Just asking for a friend… If you then integrate Stripe, I would pay 50 bucks
Definitely! Take a look at this guide ruclips.net/video/2kgqPvs0j_I/видео.html I use Postgres, but switching out to Mongo is really easy. www.prisma.io/docs/guides/database/using-prisma-with-mongodb Once you have that setup, creating a custom register page is exactly the same!
Hey Ethan! How's it going? I've got a ton of video ideas, but you could make part 2 for this with email verification being required. Let me know your thoughts.
@@ethan_mick Thank you for answering.... I'm from Venezuela, my English is bad, I use a translator... but I like your channel and having a discord channel where there can be feedback would be fantastic Topic to deal with everything related to programming, next, next-auth, perhaps mongo, prism, etc... and in discord to be able to have more fluid communication and exchange knowledge with the community..... I think they should go there go lkos shots Greetings from Venezuela your friend Jose Grillo
@@Grishopping One of my friends is from Venezuela. He said it was a beautiful country. Keep up the learning (English and code!), and you'll go great places. I'll let everyone here know when I set up a discord. For now, you can follow me here, on Twitter, and on my website to give me feedback. Thanks!
@@ethan_mick I share your friend's opinion 100%... hehehehe VENEZUELA is the best country in the world hehehe despite the difficulties we are going through... but stop, ahead is for there (as we say in my land) Done, as I told you, I'm already subscribed and I'm very aware of your channel, when you activate DISCORD I'll be one of the first, we're ready to help you Keep it up; With good videos and you will see that your channel is going up fast now there are 379 subs... soon it will be 1,000, then 10,000, 100,000 towards 1,000,000 and many more many blessings
I have watched at least 5 next-auth videos from you, thank you so much you have by far the best explanations.
Wow, awesome video Ethan🔥🔥
Thank you!! Love hearing your kind words :)
Genuinely, thank you. You are great at explaining everything and helped me progress in my project.
BROOO, I was just looking for this exact thing and you JUST uploaded it!
I’m always aiming for that perfect timing!
@@ethan_mick new sub incoming 🫡
You are the man. God bless you.
Thanks so much! Glad I could help!
Awesome video Ethan!
Thank you!!
Great videos man 🔥🔥
You’re awesome, thanks man for all the kind words. I love seeing your comments :)
Great Ethan! I am learning so much from this. Thank you.
Thank you so much! Love seeing you hitting up all the videos, you're great!
Another great tutorial, was cool to learn actually inserting data into the DB in this one, as well as setting up the custom inputs. Very keen for the next one.
Thanks so much! Let me know what else you'd like to see :)
Thanks for sharing would love to see you create a video using the T3 stack, also we are building a SaaS project so how would you handle Tenants permissions in Next-Auth.
Yeah, that’s a huge part of SaaS, managing tenant data while getting the scale of cloud. I’ll be doing some tRPC content soon :)
How would you be able to get and show individual error labels under each form input box?
Ethan, i am having trouble with an issue brother. I have seperated my app dir into two root group which are (auth) and (pages) folders. so i wanna protected my (pages) root folder which contains all of my rootes but i dont wanna include my auth folder which containes "/login" and "register" to protection. the problem is that, i cant write in middleware.ts file that, except (auth) and its sub rootes. only (pages)/:path*
The beta docs just say "coming soon" for Middleware but I did some experimenting locally. It looks like the middleware config should NOT include the "(folders)", instead, just match the paths that will be URLS.
For example, I made "/app/(auth)/login/page.tsx", which should be an unprotected page. The middleware config to protect OTHER routes but leave that unprotected is:
export { default } from 'next-auth/middleware'
export const config = {
matcher: ['/((?!register|api|login).*)',]
}
It protects all routes EXCEPT those listed in the regex. So "/register", "/login", and all of "/api". So don't use the "(auth)" and "(pages") -- target the URLS the browser will see.
@@ethan_mick omg i just tried and it works. thank u so much brother.i have been struggling with that for couple days. i appreciate it
Heck ya my friend. So happy I could help you out. Keep kicking butt, I look forward to seeing you around!
Can you do a setup with supabase? how would I work with Auth in this case?
Do you want to use Next Auth, or Supabase Auth? They are pretty different things.
I think productivity and simplicity is key.
Leveraging Supabase to its fullest, would simplify.
Plus, we can upload files and even have a vector DB… if you consider on top realtime updates, pretty much all covered…
Without this trpc shit, just leverage your backend.
Just asking for a friend…
If you then integrate Stripe, I would pay 50 bucks
And no prisma, the less the better, simple codebase, beginner friendly
Hi please I’m having issues working with login page , can you make a video which has login page different from register page ..
Vid :) Surprised the algorithm didn't help you out friend: ruclips.net/video/cm-7RmD8yKQ/видео.html
can you do this with Next.js 13 (app dir) with Next Auth, MongoDB and maybe Prisma?
Definitely! Take a look at this guide ruclips.net/video/2kgqPvs0j_I/видео.html I use Postgres, but switching out to Mongo is really easy.
www.prisma.io/docs/guides/database/using-prisma-with-mongodb
Once you have that setup, creating a custom register page is exactly the same!
It hurts that you didn't include the password confirm input
dope🤩
🥹🥹
Hey Ethan!
How's it going? I've got a ton of video ideas, but you could make part 2 for this with email verification being required.
Let me know your thoughts.
Oh man, that is a great idea. I'll add it to the list, thanks!
With that much time u spent just this form - you can use bootstrap to design and vanilla js to make functional 😢
Different people like different things. I really enjoy the composability and ecosystem of React.
discord ????
SOON my friend, SOON. What would you want to talk about in discord?
@@ethan_mick Thank you for answering.... I'm from Venezuela, my English is bad, I use a translator... but I like your channel and having a discord channel where there can be feedback would be fantastic
Topic to deal with everything related to programming, next, next-auth, perhaps mongo, prism, etc... and in discord to be able to have more fluid communication and exchange knowledge with the community..... I think they should go there go lkos shots
Greetings from Venezuela your friend Jose Grillo
@@Grishopping One of my friends is from Venezuela. He said it was a beautiful country. Keep up the learning (English and code!), and you'll go great places. I'll let everyone here know when I set up a discord. For now, you can follow me here, on Twitter, and on my website to give me feedback. Thanks!
@@ethan_mick I share your friend's opinion 100%...
hehehehe VENEZUELA is the best country in the world hehehe despite the difficulties we are going through...
but stop, ahead is for there (as we say in my land)
Done, as I told you, I'm already subscribed and I'm very aware of your channel, when you activate DISCORD I'll be one of the first, we're ready to help you
Keep it up; With good videos and you will see that your channel is going up fast now there are 379 subs... soon it will be 1,000, then 10,000, 100,000 towards 1,000,000 and many more
many blessings