Dynamic Access Control help

This is the payload am sending organizationId: "FuU76BR0cBqTIK263o8GQUKqwZVPdu7f" permission: {product: ["view"], user: ["share"], order: [], marketing: ["share"], analytics: []} analytics: [] marketing: ["share"] order: [] product: ["view"] user: ["share"] role: "Cashier" roleColor: "#000000" Does betterauth stringify and parses this under the hood cos I ran the cli and the organizationRole schema has permission as String. Or can I change it to json or string, am using Prisma . All this is dynamic Access Control @Ping @FalconiZzare @bekacru
4 Replies
Ping
Ping2mo ago
Permission is a string, yeah
Hunter
HunterOP2mo ago
I mean, should I let it be a string in the schema and betterauth will handle the rest
FalconiZzare
FalconiZzare2mo ago
Yes
Hunter
HunterOP2mo ago
Cool

Did you find this page helpful?