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

Function credentialFailureReason

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

Source from the content-addressed store, hash-verified

1069 * server refused anything, and aggregating them under
1070 * `credential_refresh_rejected` would misattribute the incident. */
1071const credentialFailureReason = (failure: CredentialResolutionError): HealthCheckReason =>
1072 failure.blockedByAdmin === true
1073 ? "blocked_by_admin"
1074 : failure.credentialMissing === true
1075 ? "credential_missing"
1076 : "credential_refresh_rejected";
1077
1078/** The verdict a recorded dead grant answers every health read with. The
1079 * persisted `expired` verdict (written together with the dead-grant

Calls

no outgoing calls

Tested by

no test coverage detected