WIP #48 Notifications

This commit is contained in:
estevez-dev
2019-03-29 13:09:34 +02:00
parent 4e96b9adbb
commit 102b10ade0
3 changed files with 32 additions and 29 deletions

View File

@ -10,7 +10,7 @@ class AuthManager {
AuthManager._internal();
Future getTempToken({String httpWebHost, String oauthUrl}) {
Future getTempToken({String oauthUrl}) {
Completer completer = Completer();
final flutterWebviewPlugin = new FlutterWebviewPlugin();
flutterWebviewPlugin.onUrlChanged.listen((String url) {
@ -18,7 +18,6 @@ class AuthManager {
String authCode = url.split("=")[1];
Logger.d("We have auth code. Getting temporary access token...");
Connection().sendHTTPPost(
host: httpWebHost,
endPoint: "/auth/token",
contentType: "application/x-www-form-urlencoded",
includeAuthHeader: false,