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

Function credentialFailureReason

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected