title: Skip web authentication of gmail api
body: <p>I am developing the Email Application to read the specific mail from Gmail for that I am using the below code.</p>
  
  <pre><code> using (var stream = new FileStream(userCredentialLocation + CredentialsJasonFile, FileMode.Open, FileAccess.Read))
     {
        string credPath = userCredentialLocation;    
        credPath = Path.Combine(credPath, ".credentials/gaf-gSuite.json");
        credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                          GoogleClientSecrets.Load(stream).Secrets, Scopes, "user", CancellationToken.None,
                          new FileDataStore(credPath, true)).Result;
  
                      Console.WriteLine("Credential file saved to: " + credPath);
  
              }
  </code></pre>
  
  <p>But It's launching Gmail application to give the access but I want to skip the human interaction like give command line access.</p>
  
  <p>Please, anyone, help me.</p>