(cause: Cause.Cause<unknown>)
| 355 | * `owner` accepted client-side where cloud requires `admin`), and offering |
| 356 | * Retry on a refusal would only re-fail forever. */ |
| 357 | const isOrgKeysAccessDenied = (cause: Cause.Cause<unknown>): boolean => |
| 358 | Option.match(Cause.findErrorOption(cause), { |
| 359 | onNone: () => false, |
| 360 | onSome: (error) => |
| 361 | Predicate.isTagged(error, "AccountForbidden") || |
| 362 | Predicate.isTagged(error, "AccountNoOrganization"), |
| 363 | }); |
| 364 | |
| 365 | export function OrgApiKeysSection() { |
| 366 | // Gate BEFORE mounting the body: `orgApiKeysAtom` starts its fetch when the |
no outgoing calls
no test coverage detected