Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / tryParseScope
Function: tryParseScope()
ts
function tryParseScope(input):
| ParsedScope
| undefined;Defined in: packages/security/src/auth/scope.ts:83
Try-parse helper. Returns undefined on failure rather than throwing; useful when iterating over a granted set that may include legacy strings.
Parameters
| Parameter | Type |
|---|---|
input | string |
Returns
| ParsedScope | undefined