diff --git a/lib/api/auth.dart b/lib/api/auth.dart index 5145bc2..5d507dd 100644 --- a/lib/api/auth.dart +++ b/lib/api/auth.dart @@ -150,15 +150,18 @@ class PremiumAuth { if (kDebugMode) print(res.body); if (res.body == "") throw "empty body"; - if (res.body == "Unauthorized") { - throw "User is not autchenticated to Github!"; - } - if (res.body == "empty_sponsors") { - throw "This user isn't sponsoring anyone currently!"; - } + // if (res.body == "Unauthorized") { + // throw "User is not autchenticated to Github!"; + // } + // if (res.body == "empty_sponsors") { + // throw "This user isn't sponsoring anyone currently!"; + // } if (res.body == "expired_subscription") { throw "This user isn't a subscriber anymore!"; } + if (res.body == "no_subscription") { + throw "This user isn't a subscriber!"; + } final premium = PremiumResult.fromJson(jsonDecode(res.body) as Map);