MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / isUnmatchedAuthErr

Function isUnmatchedAuthErr

app/cli/main.go:149–151  ·  view source on GitHub ↗

isUnmatchedAuthErr returns true when the gRPC status represents an Unauthenticated (401-equivalent) error that was not matched by any of the specific JWT sentinel checks above. This lets us surface the server's original message instead of silently dropping it.

(grpcStatus *status.Status)

Source from the content-addressed store, hash-verified

147// specific JWT sentinel checks above. This lets us surface the server's
148// original message instead of silently dropping it.
149func isUnmatchedAuthErr(grpcStatus *status.Status) bool {
150 return grpcStatus.Code() == codes.Unauthenticated
151}

Callers 2

TestIsUnmatchedAuthErrFunction · 0.85
errorInfoFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsUnmatchedAuthErrFunction · 0.68