getCsrfToken function

String getCsrfToken(
  1. String html
)

Implementation

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