| 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 c14b8d1e2a697fff3d5a87ce11a8c974bd812d75..129f259194bfdb4a61881504fc0b015683c73590 100644
|
| --- a/pkg/oauth2/lib/src/handle_access_token_response.dart
|
| +++ b/pkg/oauth2/lib/src/handle_access_token_response.dart
|
| @@ -5,7 +5,7 @@
|
| library handle_access_token_response;
|
|
|
| import 'dart:io';
|
| -import 'dart:json' as JSON;
|
| +import 'dart:convert';
|
|
|
| import 'package:http/http.dart' as http;
|
|
|
| @@ -39,7 +39,7 @@ Credentials handleAccessTokenResponse(
|
|
|
| var parameters;
|
| try {
|
| - parameters = JSON.parse(response.body);
|
| + parameters = JSON.decode(response.body);
|
| } on FormatException catch (e) {
|
| validate(false, 'invalid JSON');
|
| }
|
| @@ -108,7 +108,7 @@ void _handleErrorResponse(http.Response response, Uri tokenEndpoint) {
|
|
|
| var parameters;
|
| try {
|
| - parameters = JSON.parse(response.body);
|
| + parameters = JSON.decode(response.body);
|
| } on FormatException catch (e) {
|
| validate(false, 'invalid JSON');
|
| }
|
|
|