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