#RBAC with Supabase Auth in Next.js 15

1 messages · Page 1 of 1 (latest)

heady delta
#

hey everyone im looking for guidance on a project built with next.js 15 using the app router and typescript supabase for the database and authentication airtable as a crm tailwindcss for styling and docker deployed on a hostinger vps with traefik as the reverse proxy. i need to add role based access control and while i've done this before on other stacks im looking for best practices specifically for using supabase auth with the next.js 15 app router. any advice from people who have worked with a similar setup would be appreciated.

graceful zodiacBOT
#

-# TypeScript @unborn solstice @heady sable @ivory fiber
-# Node.js/Bun JavaScript @unborn solstice @heady sable @ivory fiber

ivory fiber
#

Sounds very insecure

heady delta
ivory fiber
#

idk just use next 16

blissful elm
#

Setup proper middleware.ts. It is now proxy.ts, it handle all the cases auth based and public as well.

heady delta
heady delta
#

like saving the user object which contains a role field in the token and then using middleware based on it

heady delta
blissful elm
#

Next js, Spring Boot Rest, PostgresSQL

#

Tailwind CSS, Shadcn

heady delta
#

Ahan got it

blissful elm
#

Shifting on Base Ui

heady delta
blissful elm
blissful elm
#

As one of youtuber said

heady delta
#

For me it's the best

#

cuz it is very easy to use

heady delta
blissful elm
#

Sorry coss ui not base ui

heady delta
#

what a youtuber admitted cant be one hundred percent perfect

heady delta
blissful elm
#

It is not on radix as Shadcn is

heady delta
blissful elm
heady delta
#

but still behind shadcn there is vercel so you cant say that it isnt being maintained

heady delta
blissful elm
# heady delta that looks good
#

Btw are you working on ai agents

heady delta
blissful elm
#

?

heady delta
#

i watched the video and he mentioned that radix is not actively maintained i think a mature library like radix doesnt need daily updates after some research its clear that maintenance has slowed down but that doesnt mean its dead radix is still widely used in production which says a lot about its stability my take is to stick with radix where it already works while also learning and experimenting with newer more actively developed libraries the future may move toward those tools but radix is still an industry standard today so it makes sense to understand and use both