Fixed Flutter secure storage issue for Android

This commit is contained in:
Abdullah Alassaf
2024-06-27 15:20:35 +03:00
parent 4b09259a47
commit f52309a59d
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -275,10 +275,7 @@ class AuthCubit extends Cubit<AuthState> {
getTokenAndValidate() async {
emit(AuthTokenLoading());
const storage = FlutterSecureStorage(
aOptions: AndroidOptions(
encryptedSharedPreferences: true,
));
const storage = FlutterSecureStorage();
final firstLaunch =
await SharedPreferencesHelper.readBoolFromSP(StringsManager.firstLaunch) ?? true;