credentialSchemeMismatch
@forge/monorepo / backend/src / credentialSchemeMismatch
Function: credentialSchemeMismatch()
credentialSchemeMismatch(
ref,expected,got):PlatformError
Defined in: backend/src/tools/credentials.ts:181
The credential resolved is not the shape this toolkit can present — #260 AC-2.
Raised at construction where possible, and at resolution otherwise. A misconfiguration discovered as a vendor 401 an hour later is the failure this exists to prevent: the vendor's message says the token is invalid, which sends an operator to rotate a token that was never the problem.
Parameters
ref
string
expected
readonly ("bearer" | "basic" | "custom-header")[]
got
"bearer" | "basic" | "custom-header"