(accessId: string)
| 191 | const accessItemId = (owner: Owner, integration: IntegrationSlug, name: ConnectionName): string => |
| 192 | `oauth:${owner}:${integration}:${name}`; |
| 193 | const refreshItemIdFor = (accessId: string): string => `${accessId}:refresh`; |
| 194 | |
| 195 | /** Order-preserving de-duplication of a scope list. */ |
| 196 | const dedupeScopes = (scopes: readonly string[]): readonly string[] => [...new Set(scopes)]; |