Function
accessItemId
(owner: Owner, integration: IntegrationSlug, name: ConnectionName)
Source from the content-addressed store, hash-verified
| 177 | /** Where an OAuth-minted access token is stored in the default provider. The |
| 178 | * refresh token lives at the same id with a `:refresh` suffix. */ |
| 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. */ |
Tested by
no test coverage detected