We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0430dc5 + 7121f27 commit 3c9436bCopy full SHA for 3c9436b
packages/grpc-js/src/channel-credentials.ts
@@ -54,6 +54,7 @@ export interface VerifyOptions {
54
* has been performed on the peer certificate.
55
*/
56
checkServerIdentity?: CheckServerIdentityCallback;
57
+ rejectUnauthorized?: boolean;
58
}
59
60
/**
@@ -207,6 +208,11 @@ class SecureChannelCredentialsImpl extends ChannelCredentials {
207
208
this.connectionOptions.checkServerIdentity =
209
verifyOptions.checkServerIdentity;
210
211
+
212
+ if (verifyOptions?.rejectUnauthorized !== undefined) {
213
+ this.connectionOptions.rejectUnauthorized =
214
+ verifyOptions.rejectUnauthorized;
215
+ }
216
217
218
compose(callCredentials: CallCredentials): ChannelCredentials {
0 commit comments