Skip to content

Commit

Permalink
Return empty token when user not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityDarkLab committed Feb 7, 2024
1 parent f4f8756 commit 517995c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/base/networking/api/handler/token_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ class TokenHandler {
final token = await _storage.read(key: key);
if (token == null) {
_logger.w('Token not found for key: $key');
throw AppError.authenticationError();
return '';
}

_logger.i('Token successfully loaded for key: $key');
return token;
} catch (e) {
Expand Down

0 comments on commit 517995c

Please sign in to comment.