debugging logout
This commit is contained in:
parent
2eead22967
commit
3af4908d5f
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,7 @@ import 'package:local_spend/common/functions/save_logout.dart';
|
|||
import 'package:local_spend/model/json/login_model.dart';
|
||||
|
||||
Future<LoginModel> 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<LoginModel> requestLogoutAPI(BuildContext context) async {
|
|||
saveLogout();
|
||||
return null;
|
||||
} else {
|
||||
debugPrint("Logout unsuccessful: " + response.body);
|
||||
|
||||
saveLogout();
|
||||
return null;
|
||||
}
|
||||
|
|
Reference in a new issue