Back to webview oauth

This commit is contained in:
Yegor Vialov
2020-01-27 21:12:05 +00:00
parent 41e552dce5
commit cf6039b279
6 changed files with 37 additions and 65 deletions

View File

@ -61,7 +61,7 @@ class ConnectionManager {
oauthUrl = "$httpWebHost/auth/authorize?client_id=${Uri.encodeComponent(
'http://ha-client.homemade.systems')}&redirect_uri=${Uri
.encodeComponent(
'haclient://auth')}";
'http://ha-client.homemade.systems/service/auth_callback.html')}";
settingsLoaded = true;
} catch (e) {
completer.completeError(HAError("Error reading login details", actions: [HAErrorAction.tryAgain(type: HAErrorActionType.FULL_RELOAD), HAErrorAction.loginAgain()]));