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.
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
@@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.
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!😍
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
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
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!
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.
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.
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.