From b661d9cfd2c025f125dcdd7c238691425009efa8 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 23 May 2022 01:16:45 +0700 Subject: [PATCH] Fix check auth bug --- lib/data/auth.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/data/auth.dart b/lib/data/auth.dart index eb67cbc..0096dca 100644 --- a/lib/data/auth.dart +++ b/lib/data/auth.dart @@ -29,9 +29,10 @@ Future checkSessionExist() async { if (res['statusCode'] == 200) { return true; + } else { + removeSession(); + return false; } - removeSession(); - return false; } return false;