/// <summary>
 /// Triggers the authentication mechanism specified in Startup.cs to sign the user into the login provider.
 /// </summary>
 public void SignIn()
 {
     if (_config == null)
     {
         throw new ArgumentNullException("authOptions", "You attempted to use the Authentication option without registering a BlazorAuthenticationConfig instance with the IServiceCollection.");
     }
     NavigationManager.NavigateTo(_config.GenerateRedirectUrl());
 }
 /// <summary>
 /// Triggers the authentication mechanism specified in Startup.cs to sign the user into the login provider.
 /// </summary>
 public void SignIn()
 {
     _uriHelper.NavigateTo(_config.GenerateRedirectUrl());
 }