( token: string, endpoint = util.authzedEndpoint, certificate: Buffer, preconnect: PreconnectServices = PreconnectServices.PERMISSIONS_SERVICE, options?: grpc.ClientOptions, )
| 324 | * @returns Client for calling Authzed APIs. |
| 325 | */ |
| 326 | export function NewClientWithCustomCert( |
| 327 | token: string, |
| 328 | endpoint = util.authzedEndpoint, |
| 329 | certificate: Buffer, |
| 330 | preconnect: PreconnectServices = PreconnectServices.PERMISSIONS_SERVICE, |
| 331 | options?: grpc.ClientOptions, |
| 332 | ) { |
| 333 | const creds = util.createClientCredsWithCustomCert(token, certificate); |
| 334 | return NewClientWithChannelCredentials(endpoint, creds, preconnect, options); |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * NewClientWithChannelCredentials creates a new client for calling Authzed APIs using custom grpc ChannelCredentials. |
nothing calls this directly
no test coverage detected