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(); } }
public void LogOut() { MainAuth.LogOut(); LoginNavigate(); }