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
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
they are tracking everything you do at this point
lol same I started doing role based access control for the first time yesterday haha
Lol. You are the reason why I don't make tutorials. I can just recommend folks to watch your channel.
🤣
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! 🔥🔥
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.
yeah it's pretty simple using RSC
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.
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.
I'm itching for that Starter Kit 😅
Nice implementation sir. pls sir realy like your vs code theme.
bearded theme stained blue is the theme
"It's turning out to be more work than I thought it would be" should be a life motto for JS developer work 😥
Your upload frequency is insane Cody! Keep it going! 🦾
I used PgEnum in my dizzle schema but when i attempt to migrate, I encounter an error that the enum type does not exist.
Cody, how would this product be categorised in terms of complexity? Is this an intermediate or advanced level project?
my starter kit? maybe intermediate, but those terms are subjective.
@@WebDevCody yeah, understandable. Cool project though, also the tutorial is super useful.
cool Cody
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?
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
@@WebDevCody Ok cool! Thanks
OMG that tip-tap editor looks horrendous, it needs a ton of work! 🤣🤣
Good job babe! I’m so late 😅
Nice
What's the price range? Any discount based on country of origin?
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
@@WebDevCody philippines. 80-100 would be great. Thanks for the great content.
shouldnt isGroupOwnerUserCase and isUserMemberofGroupUserCase, be 'Use' instead of the 2nd 'User'
yes, I need to rename those; it was a typo I think
ETA on the starter kit?
at this point I'm not sure 🤣 maybe another month
@@WebDevCody may be you can give early access like alpha or beta with cost
He's pivoting to Laravel ;))