Open Jannis87 opened 6 years ago
I tried to create a very basic example. I just created a method like this and called it: `Future _performOAuthLogin(String client_id, String client_secret) { final OAuth flutterOAuth = new FlutterOAuth(new Config( "https://localhost:8888/oauth/authorize", "https://localhost:8888/oauth/token", client_id, client_secret, "http://localhost:8080", "code"));
return flutterOAuth.performAuthorization();
}`
This code snippit leads to the following exception: `[VERBOSE-2:dart_error.cc(16)] Unhandled exception: type 'Future' is not a subtype of type 'Future'
Same issue here - any word on when this might get looked at?
this bug is inside a dependency, likely it has been fixed upstream and just need to be updated.
I'd recommend testing out the fork mentioned in #14
I tried to create a very basic example. I just created a method like this and called it: `Future _performOAuthLogin(String client_id, String client_secret) {
final OAuth flutterOAuth = new FlutterOAuth(new Config(
"https://localhost:8888/oauth/authorize",
"https://localhost:8888/oauth/token",
client_id,
client_secret,
"http://localhost:8080",
"code"));
}`
This code snippit leads to the following exception: `[VERBOSE-2:dart_error.cc(16)] Unhandled exception: type 'Future' is not a subtype of type 'Future'
0 FlutterWebviewPlugin.close (package:flutter_webview_plugin/flutter_webview_plugin.dart:73:36)
1 FlutterOAuth.requestCode (package:flutter_oauth/lib/flutter_auth.dart:26:21)