diff --git a/packages/grpc-js/src/channel-credentials.ts b/packages/grpc-js/src/channel-credentials.ts index 73672a295..46b715f1a 100644 --- a/packages/grpc-js/src/channel-credentials.ts +++ b/packages/grpc-js/src/channel-credentials.ts @@ -200,7 +200,7 @@ class SecureChannelCredentialsImpl extends ChannelCredentials { verifyOptions.checkServerIdentity; } - if (verifyOptions?.rejectUnauthorized) { + if (verifyOptions?.rejectUnauthorized !== undefined) { this.connectionOptions.rejectUnauthorized = verifyOptions.rejectUnauthorized; }