diff --git a/lib/auth/login_manager.dart b/lib/auth/login_manager.dart index f5deccc..4c1b423 100644 --- a/lib/auth/login_manager.dart +++ b/lib/auth/login_manager.dart @@ -43,7 +43,7 @@ class LoginManager { // } } - Future login(String clientId, String clientSecret, BuildContext context) async { + Future login(String clientId, BuildContext context) async { if (Globals.isTv) { DeviceCode deviceCode = DeviceCode(); var token = await deviceCode.authenticateUser(Globals.ClientId, "offline_access", Globals.DeviceCodeUrl, context); @@ -63,7 +63,6 @@ class LoginManager { AccessTokenResponse tknResponse = await client.getTokenWithAuthCodeFlow( clientId: clientId, - clientSecret: Uri.encodeQueryComponent(clientSecret), scopes: ["offline_access"], webAuthClient: baseWebAuth, state: state, diff --git a/lib/globals.dart b/lib/globals.dart index 9b9b90f..9a35a6d 100644 --- a/lib/globals.dart +++ b/lib/globals.dart @@ -2,7 +2,6 @@ class Globals { static String BaseUrl = "http://localhost:8080"; static String ClientId = ""; - static String ClientSecret = ""; static String AuthorizeUrl = ""; static String TokenUrl = ""; static String DeviceCodeUrl = ""; diff --git a/lib/main.dart b/lib/main.dart index 41829d2..b92b0cb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -89,6 +89,6 @@ class HomePage extends StatelessWidget { Future authenticate(BuildContext context) async { LoginManager loginManager = LoginManager(); var token = - await loginManager.login(Globals.ClientId, Globals.ClientSecret, context); + await loginManager.login(Globals.ClientId, context); } }