From 3af4908d5fe7173c4cdb81770a4be95135d5489e Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 15 Jul 2019 15:16:21 +0100 Subject: [PATCH] debugging logout --- lib/common/apifunctions/request_logout_api.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common/apifunctions/request_logout_api.dart b/lib/common/apifunctions/request_logout_api.dart index 2d5a141..324660f 100644 --- a/lib/common/apifunctions/request_logout_api.dart +++ b/lib/common/apifunctions/request_logout_api.dart @@ -8,7 +8,7 @@ import 'package:local_spend/common/functions/save_logout.dart'; import 'package:local_spend/model/json/login_model.dart'; Future requestLogoutAPI(BuildContext context) async { - final url = "https://www.yoururl.com/logout"; + final url = "https://dev.peartrade.org/api/logout"; var token; @@ -25,6 +25,8 @@ Future requestLogoutAPI(BuildContext context) async { saveLogout(); return null; } else { + debugPrint("Logout unsuccessful: " + response.body); + saveLogout(); return null; }