private async Task HandleLogin(OAuth2ServiceBase service) { this.User = await service.Login(); if (this.User.IsValid) { AuthorizedUser.Instance.Store(this.User, service); } }
private async void Login() { this.User = await oAuth2Service.Login(); }