Function: buildStoredCredentialRef()
Makaio Framework / contracts/config / buildStoredCredentialRef
Function: buildStoredCredentialRef()
Section titled “Function: 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.
Parameters
Section titled “Parameters”configId
Section titled “configId”string
Provider config ID; may contain colons (e.g. github:oauth-default)
string
Credential key — must not contain colons (e.g. apiKey, pat)
Returns
Section titled “Returns”string & $brand<"CredentialRef">
Stored credential reference string