(
message: string,
options?: { readonly credentialMissing?: boolean; readonly blockedByAdmin?: boolean },
)
| 2429 | Effect.gen(function* () { |
| 2430 | const owner = row.owner as Owner; |
| 2431 | const reauth = ( |
| 2432 | message: string, |
| 2433 | options?: { readonly credentialMissing?: boolean; readonly blockedByAdmin?: boolean }, |
| 2434 | ): CredentialResolutionError => |
| 2435 | new CredentialResolutionError({ |
| 2436 | owner, |
| 2437 | integration: IntegrationSlug.make(row.integration), |
| 2438 | name: ConnectionName.make(row.name), |
| 2439 | message, |
| 2440 | reauthRequired: true, |
| 2441 | ...(options?.credentialMissing === true ? { credentialMissing: true } : {}), |
| 2442 | ...(options?.blockedByAdmin === true ? { blockedByAdmin: true } : {}), |
| 2443 | }); |
| 2444 | |
| 2445 | // A recorded invalid_grant is the AS's standing verdict on this grant: |
| 2446 | // re-sending it cannot succeed, so don't. Fail as reauth-required |
no outgoing calls
no test coverage detected