diff --git a/samples/JwtAuthentication/JwtAuthApp.Client/Program.cs b/samples/JwtAuthentication/JwtAuthApp.Client/Program.cs index 8a1dc0c91..9fca4d1f3 100644 --- a/samples/JwtAuthentication/JwtAuthApp.Client/Program.cs +++ b/samples/JwtAuthentication/JwtAuthApp.Client/Program.cs @@ -51,7 +51,7 @@ private async Task MainCore(string[] args) // 5. Call StreamingHub with authentication { - var timerHubClient = StreamingHubClient.Connect( + var timerHubClient = await StreamingHubClient.ConnectAsync( channel, this, option: new CallOptions().WithHeaders(new Metadata()