Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / ParsedScope
Type Alias: ParsedScope
ts
type ParsedScope =
| {
action: string;
kind: "two-segment";
raw: string;
resource: string;
}
| {
action: string;
kind: "three-segment";
raw: string;
resource: string;
target: string;
};Defined in: packages/security/src/auth/scope.ts:24
Result of parseScope(...). The kind discriminator lets callers branch between two- and three-segment scopes without re-parsing the raw string.