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

Function NewAuthenticationError

internal/auth/codex/errors.go:110–117  ·  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

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

Callers 3

RequestCodexTokenMethod · 0.92
loginWithDeviceFlowMethod · 0.92
LoginMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected