MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / NewAuthenticationError

Function NewAuthenticationError

internal/auth/claude/errors.go:106–113  ·  view source on GitHub ↗

NewAuthenticationError creates a new authentication error with a cause based on a base error.

(baseErr *AuthenticationError, cause error)

Source from the content-addressed store, hash-verified

104
105// NewAuthenticationError creates a new authentication error with a cause based on a base error.
106func NewAuthenticationError(baseErr *AuthenticationError, cause error) *AuthenticationError {
107 return &AuthenticationError{
108 Type: baseErr.Type,
109 Message: baseErr.Message,
110 Code: baseErr.Code,
111 Cause: cause,
112 }
113}
114
115// IsAuthenticationError checks if an error is an authentication error.
116func IsAuthenticationError(err error) bool {

Callers 2

RequestAnthropicTokenMethod · 0.92
LoginMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected