Added Control functoinalty on the DoorLock

This commit is contained in:
Mohammad Salameh
2024-04-29 11:38:11 +03:00
parent 6d720546f8
commit a12f006d63
4 changed files with 149 additions and 112 deletions

View File

@ -140,7 +140,7 @@ class AuthCubit extends Cubit<AuthState> {
final value =
await const FlutterSecureStorage().read(key: Token.loginAccessTokenKey);
if (value == null) {
if (value == null || value.isEmpty) {
emit(AuthTokenError(message: "Token not found"));
return;
}