CredentialConfig
CredentialConfig =
object
Defined in: src/core/types.ts:423
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:439
Fallback credential configuration
helper?
optionalhelper:"store"|"cache"|"manager-core"|string
Defined in: src/core/types.ts:425
Method 1: Built-in helper name
helperPath?
optionalhelperPath:string
Defined in: src/core/types.ts:428
Method 2: Custom helper binary path
onAuthFailure()?
optionalonAuthFailure: (error,request) =>void
Defined in: src/core/types.ts:442
Callback when authentication fails
Parameters
error
Error
request
Returns
void
password?
optionalpassword:string
Defined in: src/core/types.ts:435
provider()?
optionalprovider: (request) =>Promise<Credential>
Defined in: src/core/types.ts:431
Method 3: Programmatic authentication provider (recommended)
Parameters
request
Returns
Promise<Credential>
token?
optionaltoken:string
Defined in: src/core/types.ts:436
username?
optionalusername:string
Defined in: src/core/types.ts:434
Method 4: Static credentials (dev/test only)