(cause: Cause.Cause<unknown>)
| 396 | * `owner` accepted client-side where cloud requires `admin`), and offering |
| 397 | * Retry on a refusal would only re-fail forever. */ |
| 398 | const isOrgKeysAccessDenied = (cause: Cause.Cause<unknown>): boolean => |
| 399 | Option.match(Cause.findErrorOption(cause), { |
| 400 | onNone: () => false, |
| 401 | onSome: (error) => |
| 402 | Predicate.isTagged(error, "AccountForbidden") || |
| 403 | Predicate.isTagged(error, "AccountNoOrganization"), |
| 404 | }); |
| 405 | |
| 406 | export function OrgApiKeysSection() { |
| 407 | // Gate BEFORE mounting the body: `orgApiKeysAtom` starts its fetch when the |
no outgoing calls
no test coverage detected