Skip to main content

Function: collectGrantedScopes()

collectGrantedScopes(scopes, selected): string[]

Defined in: OAuthConsent/OAuthConsent.tsx:116

Walk the scope tree and return the minimal set of granted scope keys. When a node is selected, its key is emitted and its subtree is skipped (the server expands parent scopes to their children). Nodes not in selected are recursed into so that individually-selected children are still captured.

Parameters

ParameterType
scopesConsentScope[]
selectedSet<string>

Returns

string[]