Would love to see this also handling subscription cancelations, although considering how it's using user metadata from clerk I hope it's not too complicated. Thanks for the vid, cheers.
Good morning, I recently discovered your channel via your course on Zustand and now I'm discovering this one, thank you very much because they are of very high quality! you really get to the bottom of things! I know that with Clerk, we can do other advanced things like setting up and managing organizations, if that is not too much to ask of you, could you occasionally address this subject? Thank you in advance and thank you for your work!
Your teaching skills are really great and you deserve huge number of subscribers . Request you to start paid course in next js + prisma + PostgreSQL + Shadcn and choose some great topic sometime like accounting application where we can make the credit voucher and debit voucher and post the purchase vouchers for number of items as such kind of applications are not there as the customer here are many others features of accounting like statement of account and aging report and so on.
@@hamedbahram using Next Auth v5 + Drizzle/Prisma ORM + Postgres/Mysql. I think it always good to have control over the auth, instead of providing all auth process to third party service.
Now how to Authentication and Role-Based Access Control in Next.js using clerk ... I mean when you have a different role like admin and user and make middleware to handle it using clerk, would you make a video tutorial about it? I think there's not yet video about it
@@garudaputro Yes you can use the `publicMetadata` in Clerk to extend the user object to have role. See here → clerk.com/docs/users/metadata#public-metadata
Hi Hamed, that's the 10th AI video tutrial :-) Thank you, always ❤ Having a big problem, hoenstly with Clerk. Have you ever tried to save the user login data after signIn? I am using prisma and supabase .. I can't even get the user right after signin using the api route. Tried all the functions Clerk is providing the api route returns NULL. I would be so happy if you could show us how you'd do it 🙏
@@hamedbahram… taking the chance to ask if you could add to the coming video multi image upload ? I could easily get the photos from the form to supabase storage but I am struggling adding the url of the images to to the supabase database via prisma …… always a lot of thank you! I think that my request hier including the photos submitted in a form with the data is one crucial for us all to learn from you 🙏
Vid has some great stuff in it, but handling the add credits on the front end in your checkout route instead of using a stripe webhook is very prone to issues. If at some point in de success redirect something messes up, the user will have paid but no credits will be added
Create a video for Lemon Squeezy with Prisma SQL with one-time payment or subscription etc. Maybe Affiliates, that would add a lot of value to the video and I need it for my saas application
Hey Hamed, could you create a video on authentication in Next.js without using any paid services? Please include the token rotation part, possibly using AuthJS, Lucia, or custom auth, especially when dealing with a separate backend and authentication through JWT.
my another question about clerk its can be used in production ? i mean its trusted ? because if we build big data with clerk what happen if they close this service or put high fees
Of course you can use Clerk in production. That's all they do: authentication. You can sync your user data to your own database, so you're not locked in.
sorry for my this question i have use context in my project and its working fine on dev pc but when i deploy on vercel its not working at all vercel ignoring it and i cant access my global state and always null what causes thats please!😍
Would love to see this also handling subscription cancelations, although considering how it's using user metadata from clerk I hope it's not too complicated. Thanks for the vid, cheers.
Great suggestion! I'll cover that in future videos.
Good morning,
I recently discovered your channel via your course on Zustand and now I'm discovering this one, thank you very much because they are of very high quality! you really get to the bottom of things!
I know that with Clerk, we can do other advanced things like setting up and managing organizations, if that is not too much to ask of you, could you occasionally address this subject?
Thank you in advance and thank you for your work!
Thanks Yannick! Welcome to the channel! I'm glad you found the videos helpful. I'll definitely cover more advanced stuff in Clerk, so stay tuned 🙂
thank you hamed i was looking for how to use stripe with next js and u really helped me as usual
Happy to hear that!
Your teaching skills are really great and you deserve huge number of subscribers . Request you to start paid course in next js + prisma + PostgreSQL + Shadcn and choose some great topic sometime like accounting application where we can make the credit voucher and debit voucher and post the purchase vouchers for number of items as such kind of applications are not there as the customer here are many others features of accounting like statement of account and aging report and so on.
I appreciate that! And thanks for the suggestions...
I agree a lot
Great tutorial, easy to follow. Thanks! By the way, what watch are you wearing?
Glad to hear that. It's a simple digital watch 🙂
you deserve millions subscribers. 👌
Thank you so much 😀
soon
Do you have in dept tutorial regarding auth with credentials provider? (email and password stored in DB + authorization by roles).
Unfortunately, I haven't covered the credentials provider! Did you mean using Clerk or other libraries like next-auth?
@@hamedbahram using Next Auth v5 + Drizzle/Prisma ORM + Postgres/Mysql. I think it always good to have control over the auth, instead of providing all auth process to third party service.
Now how to Authentication and Role-Based Access Control in Next.js using clerk ... I mean when you have a different role like admin and user and make middleware to handle it using clerk, would you make a video tutorial about it?
I think there's not yet video about it
Absolutely! I'll have a video on role-based auth. Thanks for the suggestion!
@@hamedbahram I saw a video using NextAuth to login base on roles, if I want to apply it using Clerk, can I use the same concept?
@@garudaputro Yes you can use the `publicMetadata` in Clerk to extend the user object to have role. See here → clerk.com/docs/users/metadata#public-metadata
Hi Hamed, that's the 10th AI video tutrial :-) Thank you, always ❤
Having a big problem, hoenstly with Clerk. Have you ever tried to save the user login data after signIn? I am using prisma and supabase .. I can't even get the user right after signin using the api route. Tried all the functions Clerk is providing the api route returns NULL. I would be so happy if you could show us how you'd do it 🙏
I'll have a video on that coming up...
@@hamedbahram Thank you 🙏
@@hamedbahram… taking the chance to ask if you could add to the coming video multi image upload ? I could easily get the photos from the form to supabase storage but I am struggling adding the url of the images to to the supabase database via prisma …… always a lot of thank you! I think that my request hier including the photos submitted in a form with the data is one crucial for us all to learn from you 🙏
Vid has some great stuff in it, but handling the add credits on the front end in your checkout route instead of using a stripe webhook is very prone to issues. If at some point in de success redirect something messes up, the user will have paid but no credits will be added
I'd use the webhook as a backup in case the success redirect didn't go through.
Create a video for Lemon Squeezy with Prisma SQL with one-time payment or subscription etc. Maybe Affiliates, that would add a lot of value to the video and I need it for my saas application
Sure! Thanks for the suggestion.
Hey Hamed, could you create a video on authentication in Next.js without using any paid services? Please include the token rotation part, possibly using AuthJS, Lucia, or custom auth, especially when dealing with a separate backend and authentication through JWT.
I have next-auth (authjs) videos on the channel, not with a separate backend but that's be the same concept.
@@hamedbahram did you mentioned about refresh token rotation? I can see many issue mentioned in issues
Great stuff. Thank you!
Glad it was helpful!
Thank you Hamed!
My pleasure!
my another question about clerk
its can be used in production ?
i mean its trusted ?
because if we build big data with clerk
what happen if they close this service or put high fees
Of course you can use Clerk in production. That's all they do: authentication. You can sync your user data to your own database, so you're not locked in.
sorry for my this question
i have use context in my project
and its working fine on dev pc
but when i deploy on vercel
its not working at all
vercel ignoring it and i cant access my global state and always null
what causes thats please!😍
Are you getting any errors?
Could you please release a video on react and stripe
what would you like to see covered in that video?
Just how to do a product checkout successfully using nodejs as the backend
ای ایرانی که این ویدیو رو میبنی این سرویس برا تو فیلتره 😢
Sorry to hear that!