The resolved value, or undefined if not available
const apiKey = resolveCredentialValue(
credentials?.apiKey, // From request
process.env.SENDGRID_API_KEY, // From environment
credentials?.disableEnvironmentFallback ?? false
);
Resolves a single credential value by checking the request value first, then falling back to the environment value if allowed.