public async Task <Either <TssLoginFlow, PKCETokenResponse> > Handle(TryLogin request, CancellationToken cancellationToken) { return((await LoadToken(_config.CredentialsPath)) .Case switch { PKCETokenResponse token => Prelude.Right(token), _ => Prelude.Left(new TssLoginFlow(_config.ClientId, _config.CallbackUrl)) });
private void LoginButton_Click(object sender, EventArgs e) { TryLogin?.Invoke(); }
protected void OkButtonClicked(object sender, EventArgs a) { ErrorMessage.Text = string.Empty; TryLogin?.Invoke(); }