Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / resolveSecret
Function: resolveSecret()
ts
function resolveSecret(ref, ctx?): Promise<SecretValue>;Defined in: packages/security/src/secrets/resolvers/registry.ts:138
Resolve a SecretRef (string or parsed) into a SecretValue via the active resolver. Throws UnknownSchemeError if no resolver matches; rewraps non-typed errors thrown by the resolver into a SecretResolutionError so consumers always see a stable error surface.
Parameters
| Parameter | Type |
|---|---|
ref | | string | ParsedSecretRef | SecretRef |
ctx? | SecretResolverContext |
Returns
Promise<SecretValue>