(
owner: Owner,
slug: string,
)
| 1733 | `${row.owner}:${row.subject}:${row.integration}:${row.name}`; |
| 1734 | |
| 1735 | const loadOAuthClientRow = ( |
| 1736 | owner: Owner, |
| 1737 | slug: string, |
| 1738 | ): Effect.Effect<OAuthClientRow | null, StorageFailure> => |
| 1739 | core.findFirst("oauth_client", { |
| 1740 | where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)), |
| 1741 | }); |
| 1742 | |
| 1743 | /** What drove a refresh: the pre-call expiry check (`proactive`), or an |
| 1744 | * upstream 401 on a token we believed was still valid (`reactive`). */ |
no test coverage detected