checkIfLoggedIn method

FutureOr<Student?> checkIfLoggedIn()

Implementation

FutureOr<Student?> checkIfLoggedIn() async {
  var forsideSoup = await request<String>(
    "https://www.lectio.dk/lectio/$gymId/forside.aspx",
  );

  var student =
      checkLoggedIn(BeautifulSoup(forsideSoup.data as String), gymId);
  return student;
}