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