buildAuthorizationHeaderLine method

  1. @override
String buildAuthorizationHeaderLine()
override

Builds the Authorization header.

Implementation

@override
String buildAuthorizationHeaderLine() {
  var payload = '$username:$password';
  var encode = Base64Codec.urlSafe().encode(payload.codeUnits);
  return 'Basic $encode';
}