Skip to content

Function: buildStoredCredentialRef()

Makaio Framework


Makaio Framework / contracts/config / buildStoredCredentialRef

buildStoredCredentialRef(configId, key): string & $brand<"CredentialRef">

Defined in: ../../../packages/contracts/src/config/credential-ref.ts:155

Build a stored credential reference keyed by provider config ID.

The format is stored:providerConfig:<configId>:<key>. The last colon in the string acts as the configId/key separator, so configId may contain colons (e.g. github:oauth-default) but key must be a colon-free identifier.

string

Provider config ID; may contain colons (e.g. github:oauth-default)

string

Credential key — must not contain colons (e.g. apiKey, pat)

string & $brand<"CredentialRef">

Stored credential reference string