(
owner: Owner,
slug: string,
)
| 1747 | `${row.owner}:${row.subject}:${row.integration}:${row.name}`; |
| 1748 | |
| 1749 | const loadOAuthClientRow = ( |
| 1750 | owner: Owner, |
| 1751 | slug: string, |
| 1752 | ): Effect.Effect<OAuthClientRow | null, StorageFailure> => |
| 1753 | core.findFirst("oauth_client", { |
| 1754 | where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)), |
| 1755 | }); |
| 1756 | |
| 1757 | /** What drove a refresh: the pre-call expiry check (`proactive`), or an |
| 1758 | * upstream 401 on a token we believed was still valid (`reactive`). */ |
no test coverage detected