String getCsrfToken(String html) { final match = _csrfRe.firstMatch(html); if (match == null) throw GarthException("Couldn't find CSRF token"); return match.group(1)!; }