/// <summary>
 /// Initiates a logout operation by navigating to the log out endpoint.
 /// </summary>
 /// <remarks>
 /// The navigation includes stated that is added to the browser history entry to
 /// prevent logout operations performed from different contexts.
 /// </remarks>
 /// <param name="manager">The <see cref="NavigationManager"/>.</param>
 /// <param name="loginPath">The path to the login url.</param>
 /// <param name="request">The <see cref="InteractiveRequestOptions"/> containing the authorization details.</param>
 public static void NavigateToLogin(this NavigationManager manager, string loginPath, InteractiveRequestOptions request)
 {
     manager.NavigateTo(loginPath, new NavigationOptions
     {
         HistoryEntryState = request.ToState(),
     });
 }