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; }