How I like to implement role based authorization in Next.js apps

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • My Products
    🏗️ WDC StarterKit: wdcstarterkit.com
    📖 ProjectPlannerAI: projectplanner...
    🤖 IconGeneratorAI: icongeneratora...
    📝 ThumbnailCritique: thumbnailcriti...
    Useful Links
    💬 Discord: / discord
    🔔 Newsletter: newsletter.web...
    📁 GitHub: github.com/web...
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com
    🐦 Twitter: / webdevcody

КОМЕНТАРІ • 39

  • @gumilhopipoca4041
    @gumilhopipoca4041 3 місяці тому +13

    I've seen google recommend ads of things i was just talking about, but seeing a youtuber post a video about the thing i was searching 30 minutes ago is a first for me, thank you

    • @WebDevCody
      @WebDevCody  3 місяці тому +5

      they are tracking everything you do at this point

    • @teamvashmmo3218
      @teamvashmmo3218 3 місяці тому

      lol same I started doing role based access control for the first time yesterday haha

  • @CodingAfterThirty
    @CodingAfterThirty 3 місяці тому +7

    Lol. You are the reason why I don't make tutorials. I can just recommend folks to watch your channel.

  • @naylord5
    @naylord5 3 місяці тому +2

    superb content! I really like this kind of quick videos with extremely helpful tips and tricks.
    Thank you so much for sharing!
    Please keep them coming! 🔥🔥

  • @Dom-zy1qy
    @Dom-zy1qy 3 місяці тому

    I'm doing something similar right now and its really satisfying how you can use a server component, and from there include the client components based on a boolean condition.
    So the browser never has to receive the js for components it doesn't need.

    • @WebDevCody
      @WebDevCody  3 місяці тому

      yeah it's pretty simple using RSC

  • @jlsonline
    @jlsonline 3 місяці тому +1

    Really helped me understand. I like the boolean checks (isowner, ismember, etc) too, good idea. Did you already cover the schema in another video? I'm interested in the relationships between groups and users and the db structure. I presume it's not a db-per-group? From this video, it seems like a member(ship) is just a relationship and that actual app data is related to a group? Is that right?
    Also, I was interested in the caching you mentioned to make it performant. It was something I hadn't heard of and am investigating.

    • @WebDevCody
      @WebDevCody  3 місяці тому

      that cache method is built into next.js. Basically on a single request, it'll cache any value and re-use if you call that method anywhere else in that same request. New requests would use a different cache value.

  • @EdwardOrnelas
    @EdwardOrnelas 3 місяці тому +1

    I'm itching for that Starter Kit 😅

  • @user-ou8xg5xj6w
    @user-ou8xg5xj6w 3 місяці тому +1

    Nice implementation sir. pls sir realy like your vs code theme.

    • @WebDevCody
      @WebDevCody  3 місяці тому

      bearded theme stained blue is the theme

  • @latiotech
    @latiotech 3 місяці тому

    "It's turning out to be more work than I thought it would be" should be a life motto for JS developer work 😥

  • @MaxOnTech
    @MaxOnTech 3 місяці тому +4

    Your upload frequency is insane Cody! Keep it going! 🦾

  • @ogbillity
    @ogbillity 3 місяці тому

    I used PgEnum in my dizzle schema but when i attempt to migrate, I encounter an error that the enum type does not exist.

  • @naughtiousmaximus7853
    @naughtiousmaximus7853 3 місяці тому

    Cody, how would this product be categorised in terms of complexity? Is this an intermediate or advanced level project?

    • @WebDevCody
      @WebDevCody  3 місяці тому

      my starter kit? maybe intermediate, but those terms are subjective.

    • @naughtiousmaximus7853
      @naughtiousmaximus7853 3 місяці тому

      @@WebDevCody yeah, understandable. Cool project though, also the tutorial is super useful.

  • @MB-uy1mp
    @MB-uy1mp 3 місяці тому

    cool Cody

  • @ShivGamer
    @ShivGamer 3 місяці тому

    Hey Cody, Can you recommend any other editors like tip tap? which are free to use and work best? or do u recommend to build one for own use?

    • @WebDevCody
      @WebDevCody  3 місяці тому +1

      Tiptap is free to use, they just have some more premium features if you want them. The basic editor that you saw in this video is all free and mit license

    • @ShivGamer
      @ShivGamer 3 місяці тому

      @@WebDevCody Ok cool! Thanks

  • @abdirahmann
    @abdirahmann 3 місяці тому

    OMG that tip-tap editor looks horrendous, it needs a ton of work! 🤣🤣

  • @SeibertSwirl
    @SeibertSwirl 3 місяці тому

    Good job babe! I’m so late 😅

  • @patolorde
    @patolorde 3 місяці тому

    Nice

  • @0b3ryn29
    @0b3ryn29 3 місяці тому

    What's the price range? Any discount based on country of origin?

    • @WebDevCody
      @WebDevCody  3 місяці тому

      depends on how far i take it, probably around $99-$150 range. Where do you live and what's the max you could afford? I may do some purchase parity at some point

    • @0b3ryn29
      @0b3ryn29 3 місяці тому

      @@WebDevCody philippines. 80-100 would be great. Thanks for the great content.

  • @JerrenT
    @JerrenT 3 місяці тому

    shouldnt isGroupOwnerUserCase and isUserMemberofGroupUserCase, be 'Use' instead of the 2nd 'User'

    • @WebDevCody
      @WebDevCody  3 місяці тому

      yes, I need to rename those; it was a typo I think

  • @FridayOLeary
    @FridayOLeary 3 місяці тому

    ETA on the starter kit?

    • @WebDevCody
      @WebDevCody  3 місяці тому

      at this point I'm not sure 🤣 maybe another month

    • @user-os5sg3of9m
      @user-os5sg3of9m 3 місяці тому

      @@WebDevCody may be you can give early access like alpha or beta with cost

    • @drprdcts
      @drprdcts 3 місяці тому

      He's pivoting to Laravel ;))