We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e675406 + 3106057 commit 2e008d1Copy full SHA for 2e008d1
packages/grpc-js/src/channel-credentials.ts
@@ -183,9 +183,12 @@ class SecureChannelCredentialsImpl extends ChannelCredentials {
183
ciphers: CIPHER_SUITES,
184
});
185
this.connectionOptions = {
186
- secureContext,
187
- checkServerIdentity: verifyOptions?.checkServerIdentity
+ secureContext
188
};
+ // Node asserts that this option is a function, so we cannot pass undefined
189
+ if (verifyOptions?.checkServerIdentity) {
190
+ this.connectionOptions.checkServerIdentity = verifyOptions.checkServerIdentity;
191
+ }
192
}
193
194
compose(callCredentials: CallCredentials): ChannelCredentials {
0 commit comments