From 83b1075f1de996c58370a57da11a59a1a90eda67 Mon Sep 17 00:00:00 2001 From: Caleb Kiage <747955+calebkiage@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:20:39 +0300 Subject: [PATCH] Remove login hint (#267) --- .../Authentication/AuthenticationServiceFactory.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Microsoft.Graph.Cli.Core/Authentication/AuthenticationServiceFactory.cs b/src/Microsoft.Graph.Cli.Core/Authentication/AuthenticationServiceFactory.cs index 111bbc4e..06626b34 100644 --- a/src/Microsoft.Graph.Cli.Core/Authentication/AuthenticationServiceFactory.cs +++ b/src/Microsoft.Graph.Cli.Core/Authentication/AuthenticationServiceFactory.cs @@ -103,7 +103,6 @@ private async Task GetInteractiveBrowserCredential TokenCachePersistenceOptions tokenCacheOptions = new() { Name = Constants.TokenCacheName }; credOptions.TokenCachePersistenceOptions = tokenCacheOptions; credOptions.AuthenticationRecord = await authenticationCacheManager.ReadAuthenticationRecordAsync(cancellationToken); - credOptions.LoginHint = credOptions.AuthenticationRecord?.Username; return new InteractiveBrowserCredential(credOptions); }