MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isAuthenticationError

Function isAuthenticationError

src/utils/plugins/marketplaceManager.ts:767–775  ·  view source on GitHub ↗

* Check if a git error indicates authentication failure. * Used to provide enhanced error messages for auth failures.

(stderr: string)

Source from the content-addressed store, hash-verified

765 * Used to provide enhanced error messages for auth failures.
766 */
767function isAuthenticationError(stderr: string): boolean {
768 return (
769 stderr.includes('Authentication failed') ||
770 stderr.includes('could not read Username') ||
771 stderr.includes('terminal prompts disabled') ||
772 stderr.includes('403') ||
773 stderr.includes('401')
774 )
775}
776
777/**
778 * Extract the SSH host from a git URL for error messaging.

Callers 1

gitCloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected