Authentication & Subscriptions in NextJs 14

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 46

  • @dirtbagmoto
    @dirtbagmoto 2 месяца назад +1

    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  2 месяца назад

      Great suggestion! I'll cover that in future videos.

  • @yanDev
    @yanDev 8 месяцев назад

    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  8 месяцев назад

      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 🙂

  • @tatsumii1420
    @tatsumii1420 8 месяцев назад

    thank you hamed i was looking for how to use stripe with next js and u really helped me as usual

  • @mohdali-yq8gq
    @mohdali-yq8gq 8 месяцев назад

    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.

  • @rifayetazam
    @rifayetazam 8 месяцев назад +1

    Great tutorial, easy to follow. Thanks! By the way, what watch are you wearing?

    • @hamedbahram
      @hamedbahram  8 месяцев назад

      Glad to hear that. It's a simple digital watch 🙂

  • @Aabid789
    @Aabid789 8 месяцев назад +1

    you deserve millions subscribers. 👌

  • @AndriusLau
    @AndriusLau 8 месяцев назад +1

    Do you have in dept tutorial regarding auth with credentials provider? (email and password stored in DB + authorization by roles).

    • @hamedbahram
      @hamedbahram  8 месяцев назад

      Unfortunately, I haven't covered the credentials provider! Did you mean using Clerk or other libraries like next-auth?

    • @AndriusLau
      @AndriusLau 8 месяцев назад

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

  • @garudaputro
    @garudaputro 8 месяцев назад +1

    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  8 месяцев назад

      Absolutely! I'll have a video on role-based auth. Thanks for the suggestion!

    • @garudaputro
      @garudaputro 8 месяцев назад +1

      @@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  8 месяцев назад

      @@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

  • @ilan117
    @ilan117 8 месяцев назад +1

    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  8 месяцев назад +1

      I'll have a video on that coming up...

    • @ilan117
      @ilan117 8 месяцев назад +1

      @@hamedbahram Thank you 🙏

    • @ilan117
      @ilan117 8 месяцев назад

      ⁠@@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 8 месяцев назад

    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  8 месяцев назад +1

      I'd use the webhook as a backup in case the success redirect didn't go through.

  • @ziacodes
    @ziacodes 8 месяцев назад

    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  8 месяцев назад

      Sure! Thanks for the suggestion.

  • @imkir4n
    @imkir4n 8 месяцев назад

    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  8 месяцев назад

      I have next-auth (authjs) videos on the channel, not with a separate backend but that's be the same concept.

    • @imkir4n
      @imkir4n 8 месяцев назад

      @@hamedbahram did you mentioned about refresh token rotation? I can see many issue mentioned in issues

  • @CREATE-oo8xg
    @CREATE-oo8xg 4 месяца назад

    Great stuff. Thank you!

  • @raphauy
    @raphauy 4 месяца назад

    Thank you Hamed!

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 8 месяцев назад

    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  8 месяцев назад

      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.

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 8 месяцев назад

    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  8 месяцев назад

      Are you getting any errors?

  • @oyewolefaithdamilare635
    @oyewolefaithdamilare635 6 месяцев назад +1

    Could you please release a video on react and stripe

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      what would you like to see covered in that video?

    • @oyewolefaithdamilare635
      @oyewolefaithdamilare635 6 месяцев назад

      Just how to do a product checkout successfully using nodejs as the backend

  • @hassaneskandari8177
    @hassaneskandari8177 8 месяцев назад

    ای ایرانی که این ویدیو رو میبنی این سرویس برا تو فیلتره 😢