MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / credentialFailureReason

Function credentialFailureReason

packages/core/sdk/src/executor.ts:1057–1062  ·  view source on GitHub ↗
(failure: CredentialResolutionError)

Source from the content-addressed store, hash-verified

1055 * server refused anything, and aggregating them under
1056 * `credential_refresh_rejected` would misattribute the incident. */
1057const credentialFailureReason = (failure: CredentialResolutionError): HealthCheckReason =>
1058 failure.blockedByAdmin === true
1059 ? "blocked_by_admin"
1060 : failure.credentialMissing === true
1061 ? "credential_missing"
1062 : "credential_refresh_rejected";
1063
1064/** The verdict a recorded dead grant answers every health read with. The
1065 * persisted `expired` verdict (written together with the dead-grant

Calls

no outgoing calls

Tested by

no test coverage detected