Index: pkg/oauth2/lib/src/handle_access_token_response.dart |
diff --git a/pkg/oauth2/lib/src/handle_access_token_response.dart b/pkg/oauth2/lib/src/handle_access_token_response.dart |
index b80532d3f5a6f92a16b07c903fc691792577f842..246f30b8d2fd1fb9679928c98592bc030e751f57 100644 |
--- a/pkg/oauth2/lib/src/handle_access_token_response.dart |
+++ b/pkg/oauth2/lib/src/handle_access_token_response.dart |
@@ -130,7 +130,7 @@ void _handleErrorResponse(http.Response response, Uri tokenEndpoint) { |
var description = parameters['error_description']; |
var uriString = parameters['error_uri']; |
- var uri = uriString == null ? null : new Uri.fromString(uriString); |
+ var uri = uriString == null ? null : Uri.parse(uriString); |
throw new AuthorizationException(parameters['error'], description, uri); |
} |