Index: pkg/oauth2/lib/src/credentials.dart |
diff --git a/pkg/oauth2/lib/src/credentials.dart b/pkg/oauth2/lib/src/credentials.dart |
index 12a0be8fd82f816133bc8c9346903c2643c72c1e..3aca9be8c6099861afcc06f30cb933318a06b607 100644 |
--- a/pkg/oauth2/lib/src/credentials.dart |
+++ b/pkg/oauth2/lib/src/credentials.dart |
@@ -105,7 +105,7 @@ class Credentials { |
var tokenEndpoint = parsed['tokenEndpoint']; |
if (tokenEndpoint != null) { |
- tokenEndpoint = new Uri.fromString(tokenEndpoint); |
+ tokenEndpoint = Uri.parse(tokenEndpoint); |
} |
var expiration = parsed['expiration']; |
if (expiration != null) { |