generateScopeStrings static method

List<String> generateScopeStrings({
  1. required List<Oauth2Scopes> scopes,
})

Generares a scope strings from desired scopes

Implementation

static List<String> generateScopeStrings({
  required List<Oauth2Scopes> scopes,
}) {
  List<String> scopeStrings = [];
  for (var scope in scopes) {
    scopeStrings.add(scope.toJsonString());
  }

  return scopeStrings;
}