(failure: CredentialResolutionError)
| 1069 | * server refused anything, and aggregating them under |
| 1070 | * `credential_refresh_rejected` would misattribute the incident. */ |
| 1071 | const 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 |
no outgoing calls
no test coverage detected