Index: pkg/oauth2/lib/src/credentials.dart |
diff --git a/pkg/oauth2/lib/src/credentials.dart b/pkg/oauth2/lib/src/credentials.dart |
index 17cd4104911cd8a105a95957e5c2b2f03aa1f26f..26112c63a50a08f0ca75147bd6532af9ae632d4e 100644 |
--- a/pkg/oauth2/lib/src/credentials.dart |
+++ b/pkg/oauth2/lib/src/credentials.dart |
@@ -171,7 +171,7 @@ class Credentials { |
"client_id": identifier, |
"client_secret": secret |
}; |
- if (!scopes.isEmpty) fields["scope"] = Strings.join(scopes, ' '); |
+ if (!scopes.isEmpty) fields["scope"] = scopes.join(' '); |
return httpClient.post(tokenEndpoint, fields: fields); |
}).then((response) { |