We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8682f4 commit 6c91b7cCopy full SHA for 6c91b7c
src/cli/commands/add/validate.ts
@@ -228,7 +228,7 @@ export async function validateAddGatewayTargetOptions(options: AddGatewayTargetO
228
229
// Validate outbound auth configuration
230
if (options.outboundAuthType && options.outboundAuthType !== 'NONE') {
231
- const hasInlineOAuth = !!(options.oauthClientId || options.oauthClientSecret || options.oauthDiscoveryUrl);
+ const hasInlineOAuth = !!(options.oauthClientId ?? options.oauthClientSecret ?? options.oauthDiscoveryUrl);
232
233
// Reject inline OAuth fields with API_KEY auth type
234
if (options.outboundAuthType === 'API_KEY' && hasInlineOAuth) {
0 commit comments