@suluk/better-auth - v0.2.0
    Preparing search index...

    Interface PrincipalOptions

    interface PrincipalOptions {
        roleScopes?: Record<string, string[]>;
        orgRoleScopes?: Record<string, string[]>;
    }
    Index

    Properties

    roleScopes?: Record<string, string[]>

    Map a role name → the scopes it grants (e.g. { admin: ["read:","write:"], user: ["read:self"] }).

    orgRoleScopes?: Record<string, string[]>

    Map an ORG role → the scopes it grants WITHIN an org (each namespaced to org:<id>:<scope>).