Skip to main content

CredentialResolver

@forge/monorepo


@forge/monorepo / backend/src / CredentialResolver

Interface: CredentialResolver

Defined in: backend/src/tools/credentials.ts:130

Methods

resolve()

resolve(input): Promise<Credential>

Defined in: backend/src/tools/credentials.ts:138

The credential behind a reference, for this caller.

Takes the context because a reference is resolved per tenant: two tenants using the same toolkit name the same credential and mean different secrets, and a resolver that ignored the caller would hand one tenant another's token.

Parameters

input
context

ExecutionContext

ref

string

Returns

Promise<Credential>