diff --git a/grpc-auth-support.md b/grpc-auth-support.md index 59d690d8a52d1759ca0d79c8d68b805b217f661e..b1b576e7424c125785a740558dbc67c4360e6ca5 100644 --- a/grpc-auth-support.md +++ b/grpc-auth-support.md @@ -54,7 +54,7 @@ passed to the factory method. gRPC applications can use a simple API to create a credential that works in various deployment scenarios. ``` -std::unique_ptr<Credentials> creds = GoogleDefaultGoogleDefaultCredentials(); +std::unique_ptr<Credentials> creds = CredentialsFactory::GoogleDefaultCredentials(); // Create a channel, stub and make RPC calls (same as in the previous example) std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args); std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));