getScopesAsConsentBody method

String getScopesAsConsentBody()

Implementation

String getScopesAsConsentBody() {
  List<String> scopes = scope.split(" ");
  if (scope.isEmpty) {
    return scope;
  }

  var buffer = StringBuffer();

  scopes.forEach((element) {
    buffer.write("consent[acceptedScopes][]=");
    buffer.write(element);
    buffer.write("&");
  });

  return buffer.toString();
}