In one project, a web page with a request for rights was opened and the token was saved, in the second, the debugger just hangs.
The code for interacting with Google Calendar API took with developers.google.com .
UserCredential credential; var appData = AppDomain.CurrentDomain.BaseDirectory + "App_Data\\"; using (var stream = new FileStream(appData + "client_secret.json", FileMode.Open, FileAccess.Read)) { var credPath = appData + "calendar-dotnet.json"; // Вот перед этим зависает credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, Scopes, "user", CancellationToken.None, new FileDataStore(credPath, true)).Result; } There is a suspicion that the token is issued only once.