CredentialConfig
CredentialConfig =
object
Defined in: src/core/types.ts:445
Credential configuration for Git authentication (§6.4)
Supports multiple authentication methods:
- Built-in helper (store, cache, manager-core)
- Custom helper binary
- Programmatic authentication (recommended)
- Static credentials (dev/test only)
Properties
fallback?
optionalfallback:CredentialConfig
Defined in: src/core/types.ts:461
Fallback credential configuration
helper?
optionalhelper:"store"|"cache"|"manager-core"|string
Defined in: src/core/types.ts:447
Method 1: Built-in helper name
helperPath?
optionalhelperPath:string
Defined in: src/core/types.ts:450
Method 2: Custom helper binary path
onAuthFailure()?
optionalonAuthFailure: (error,request) =>void
Defined in: src/core/types.ts:464
Callback when authentication fails
Parameters
error
Error
request
Returns
void
password?
optionalpassword:string
Defined in: src/core/types.ts:457
provider()?
optionalprovider: (request) =>Promise<Credential>
Defined in: src/core/types.ts:453
Method 3: Programmatic authentication provider (recommended)
Parameters
request
Returns
Promise<Credential>
token?
optionaltoken:string
Defined in: src/core/types.ts:458
username?
optionalusername:string
Defined in: src/core/types.ts:456
Method 4: Static credentials (dev/test only)