forward-apricotF
Refine2y ago
11 replies
forward-apricot

How can i assign a user role following the refine week pixels guide?

I'm currently working on managing user roles within my application, specifically targeting users' roles on Supabase. While I've been following the Pixel Guide, I noticed that there's no explicit mention of how to access or modify a user's role within the application itself.

Could anyone please provide some guidance on how to achieve this?

Is there a recommended approach for changing a user's role within my application? The guide only mentions the set_claim method (set_claim('user_id', 'role', '"admin"')) for role changes through Supabase SQL, but I'm unsure about the overall process of integrating this into my app's logic?
Was this page helpful?