private void SignOut()
{
_accountService.SignOut();
_navigationService.ClearHistory();
// Navigate to Hub page with time stamp to ensure a navigation even if user is currently on Hub page.
// If user is currently on Hub page and navigation is attempted with same navigation parameter,
// nothing will be added to the navigation stack.
_navigationService.Navigate("Hub", DateTime.Now.ToString());
CloseFlyout();
}
}