(accessId: string)
| 179 | const accessItemId = (owner: Owner, integration: IntegrationSlug, name: ConnectionName): string => |
| 180 | `oauth:${owner}:${integration}:${name}`; |
| 181 | const refreshItemIdFor = (accessId: string): string => `${accessId}:refresh`; |
| 182 | |
| 183 | /** Order-preserving de-duplication of a scope list. */ |
| 184 | const dedupeScopes = (scopes: readonly string[]): readonly string[] => [...new Set(scopes)]; |