Login and mobile app registration improvements

This commit is contained in:
estevez-dev
2019-08-16 12:32:36 +03:00
parent 5c31ddd00f
commit 929abea5d3
6 changed files with 45 additions and 47 deletions

View File

@ -27,11 +27,11 @@ class AuthManager {
Logger.d("Gottemp token");
String tempToken = json.decode(response)['access_token'];
Logger.d("Closing webview...");
flutterWebviewPlugin.close();
//flutterWebviewPlugin.close();
eventBus.fire(StartAuthEvent(oauthUrl, false));
completer.complete(tempToken);
}).catchError((e) {
flutterWebviewPlugin.close();
//flutterWebviewPlugin.close();
Logger.e("Error getting temp token: ${e.toString()}");
eventBus.fire(StartAuthEvent(oauthUrl, false));
completer.completeError(HAError("Error getting temp token"));