mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(auth): Android login local server not starting
This commit is contained in:
parent
08575e3d09
commit
4b9792c34a
@ -62,6 +62,16 @@ class LoginForm extends HookConsumerWidget {
|
||||
const SizedBox(height: 20),
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
if (clientSecretController.text.isEmpty ||
|
||||
clientIdController.text.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text("Please fill in all fields"),
|
||||
behavior: SnackBarBehavior.floating,
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
await handleLogin(authState);
|
||||
},
|
||||
child: const Text("Submit"),
|
||||
|
@ -184,8 +184,12 @@ abstract class ServiceUtils {
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
|
||||
HttpServer server =
|
||||
await HttpServer.bind(InternetAddress.loopbackIPv4, 4304);
|
||||
HttpServer server = await HttpServer.bind(
|
||||
InternetAddress.loopbackIPv4,
|
||||
4304,
|
||||
shared: true,
|
||||
);
|
||||
|
||||
logger.i("[connectIpc] Server started");
|
||||
|
||||
await for (HttpRequest request in server) {
|
||||
|
Loading…
Reference in New Issue
Block a user