Skip to content

Function: resolveCredentialRef()

Makaio Framework


Makaio Framework / ai-adapters-core/config / resolveCredentialRef

resolveCredentialRef(ref, deps?): Promise<string | null>

Defined in: ../../../adapters/core/src/config/resolve-credential-ref.ts:31

Resolve a credential reference to its runtime value.

Supported formats:

  • env:VAR_NAME
  • file:/path/to/secret
  • keychain:service:account (requires resolveKeychain)

string & $brand<"CredentialRef">

Credential reference string

ResolveCredentialRefDeps = {}

Optional dependency overrides for resolution

Promise<string | null>

Resolved credential value or null if not found