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
Permission is a string, yeah
I mean, should I let it be a string in the schema and betterauth will handle the rest
Yes
Cool