Exemple #1
0
        private async void StartUp()
        {
            if (MainAuth.UserID == null)
            {
                LoginNavigate();
            }
            else
            {
                await MainAuth.GenerateAccessToken();

                await RefreshShifts();
                await RefreshUsers();

                User user = UserList.Find(x => x._ID == MainAuth.UserID);
                MainAuth.UserName = $"{user.FirstName} {user.LastName}";

                ShiftListNavigate();
            }
        }
Exemple #2
0
 public void LogOut()
 {
     MainAuth.LogOut();
     LoginNavigate();
 }