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