Skip to content

Commit

Permalink
Fix attempting to validate empty token
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Feb 9, 2024
1 parent c685127 commit af91c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ class User {
}

Future<bool> validate() async {
if (token == "") {
return false;
}
try {
Response resp = await data.dio.get(
"${data.baseUrl}/validate-token",
Expand Down

0 comments on commit af91c1b

Please sign in to comment.