scopeSet

Parses a scope set from the JSON object, accepting either a comma-separated string or an array of strings. If the field is a string, it is split on commas to create the set. If the field is an array, each element must be a string. If the field is missing, a JsonConfigError.MissingRequiredField is thrown. If the field is present but not a string or array of strings, a JsonConfigError.InvalidType is thrown.

Return

A mutable set of scopes.

Parameters

key

The JSON key for the scopes field.