Тёмный

Authentication & Subscriptions in NextJs 14 

Hamed Bahram
Подписаться 168 тыс.
Просмотров 5 тыс.
50% 1

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

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@dirtbagmoto
@dirtbagmoto Месяц назад
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.
@hamedbahram
@hamedbahram Месяц назад
Great suggestion! I'll cover that in future videos.
@ziacodes
@ziacodes 7 месяцев назад
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
@hamedbahram 7 месяцев назад
Sure! Thanks for the suggestion.
@oyewolefaithdamilare635
@oyewolefaithdamilare635 5 месяцев назад
Could you please release a video on react and stripe
@hamedbahram
@hamedbahram 5 месяцев назад
what would you like to see covered in that video?
@oyewolefaithdamilare635
@oyewolefaithdamilare635 5 месяцев назад
Just how to do a product checkout successfully using nodejs as the backend
@AndriusLau
@AndriusLau 6 месяцев назад
Do you have in dept tutorial regarding auth with credentials provider? (email and password stored in DB + authorization by roles).
@hamedbahram
@hamedbahram 6 месяцев назад
Unfortunately, I haven't covered the credentials provider! Did you mean using Clerk or other libraries like next-auth?
@AndriusLau
@AndriusLau 6 месяцев назад
@@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.
@rifayetazam
@rifayetazam 6 месяцев назад
Great tutorial, easy to follow. Thanks! By the way, what watch are you wearing?
@hamedbahram
@hamedbahram 6 месяцев назад
Glad to hear that. It's a simple digital watch 🙂
@AllahomAnsorGaza
@AllahomAnsorGaza 7 месяцев назад
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!😍
@hamedbahram
@hamedbahram 7 месяцев назад
Are you getting any errors?
@ilan117
@ilan117 7 месяцев назад
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
@hamedbahram 7 месяцев назад
I'll have a video on that coming up...
@ilan117
@ilan117 7 месяцев назад
@@hamedbahram Thank you 🙏
@ilan117
@ilan117 6 месяцев назад
⁠@@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 🙏
@Assoehosselaar
@Assoehosselaar 7 месяцев назад
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
@hamedbahram
@hamedbahram 7 месяцев назад
I'd use the webhook as a backup in case the success redirect didn't go through.
@garudaputro
@garudaputro 7 месяцев назад
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
@hamedbahram
@hamedbahram 7 месяцев назад
Absolutely! I'll have a video on role-based auth. Thanks for the suggestion!
@garudaputro
@garudaputro 7 месяцев назад
@@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?
@hamedbahram
@hamedbahram 7 месяцев назад
@@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
@yanDev
@yanDev 7 месяцев назад
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!
@hamedbahram
@hamedbahram 7 месяцев назад
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 🙂
@AllahomAnsorGaza
@AllahomAnsorGaza 7 месяцев назад
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
@hamedbahram
@hamedbahram 7 месяцев назад
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.
@Aabid789
@Aabid789 7 месяцев назад
you deserve millions subscribers. 👌
@hamedbahram
@hamedbahram 7 месяцев назад
Thank you so much 😀
@AllahomAnsorGaza
@AllahomAnsorGaza 7 месяцев назад
soon
@raphauy
@raphauy 2 месяца назад
Thank you Hamed!
@hamedbahram
@hamedbahram 2 месяца назад
My pleasure!
@imkir4n
@imkir4n 7 месяцев назад
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.
@hamedbahram
@hamedbahram 7 месяцев назад
I have next-auth (authjs) videos on the channel, not with a separate backend but that's be the same concept.
@imkir4n
@imkir4n 7 месяцев назад
@@hamedbahram did you mentioned about refresh token rotation? I can see many issue mentioned in issues
@mohdali-yq8gq
@mohdali-yq8gq 7 месяцев назад
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
@hamedbahram 7 месяцев назад
I appreciate that! And thanks for the suggestions...
@oussamasethoum1665
@oussamasethoum1665 7 месяцев назад
I agree a lot
@tatsumii1420
@tatsumii1420 7 месяцев назад
thank you hamed i was looking for how to use stripe with next js and u really helped me as usual
@hamedbahram
@hamedbahram 7 месяцев назад
Happy to hear that!
@CREATE-oo8xg
@CREATE-oo8xg 3 месяца назад
Great stuff. Thank you!
@hamedbahram
@hamedbahram 3 месяца назад
Glad it was helpful!
@hassaneskandari8177
@hassaneskandari8177 7 месяцев назад
ای ایرانی که این ویدیو رو میبنی این سرویس برا تو فیلتره 😢
@hamedbahram
@hamedbahram 7 месяцев назад
Sorry to hear that!
Далее
Global State Management in NextJs 14 Using Zustand
51:17
Stripe Webhooks - The Ultimate Guide
29:04
Просмотров 8 тыс.
Easy Multi-tenant NextJS Apps With Clerk
29:58
Просмотров 27 тыс.
Simple Next.js & React Authentication With Clerk
49:35
Implement Clean Architecture in Next.js
53:07
Просмотров 23 тыс.
Caching in NextJs ft Delba Oliveira from Vercel
1:03:06