loginWithCookies method

Future<Student?> loginWithCookies(
  1. List<Cookie> cookies,
  2. String studentId
)

Implementation

Future<Student?> loginWithCookies(
    List<Cookie> cookies, String studentId) async {
  addCookies(Uri.parse("https://www.lectio.dk"), cookies);
  var student = Student(studentId, gymId);
  setAutologin();
  return student;
}