(input: string | undefined)
| 127 | }, [connections]); |
| 128 | |
| 129 | const parseAdditionalScopes = (input: string | undefined): string[] => { |
| 130 | if (!input) { |
| 131 | return []; |
| 132 | } |
| 133 | return Array.from( |
| 134 | new Set( |
| 135 | input |
| 136 | .split(/[\s,]+/) |
| 137 | .map((scope) => scope.trim()) |
| 138 | .filter(Boolean), |
| 139 | ), |
| 140 | ); |
| 141 | }; |
| 142 | |
| 143 | const buildRequestedScopes = (provider: IntegrationProvider): string[] => { |
| 144 | const baseScopes = provider.defaultScopes ?? []; |
no test coverage detected