Questions tagged [flutter-secure-storage]
30 questions
4
votes
3 answers
Store data model into Flutter Secure Storage
How do we store model data to flutter secure storage... or does it supports it?
I have a model like this... I load data from my API to this model... once I have data, I wanted to save it to the flutter secure storage and vice versa(load entire data…

Praveen
- 346
- 1
- 6
- 18
2
votes
0 answers
How to allow user to save/fill login info on/from Keychain/Keystore in Flutter
What I want to achieve
Save login credentials (email and password) on Keychain/Keystore.
Fill login form when a user selects corresponding login info from Keychain/Keystore just like attached with some hints shown above keyboard. Example behavior…

HPanda
- 23
- 4
2
votes
2 answers
Flutter - Authenticate with a pin
I want to lock my app with a 6 digit pin. When the user creates a new pin the hash of this pin is saved in flutter secure storage. A pin is proofed by getting the hashed pin from the secure storage and comparing them. Would this be secure?
import…

LUMPAAK
- 53
- 4
2
votes
2 answers
how to show the dialog box when session expired or getting response 401 in flutter
My application has a user token and it expires after some time the user login. I got response code 401 and want to navigate to the login page, I am using dio and flutter_secure_storage to save tokens.
else if (e.response?.statusCode == 401) {
…

Anee
- 49
- 6
2
votes
0 answers
Flutter secure storage write not working properly on web - NoSuchMethodError: method not found: 'generateKey' on null
Having issue with storing data using flutter secure storage.
Issue is seen only when I host the release web build with some server (like apache2).
While runing the app using flutter run -d chrome, it is working fine.
Also the release version for iOS…

tr1via
- 51
- 2
- 7
2
votes
2 answers
Flutter Secure Storage Platform Exception
I'm using flutter secure storage (^5.0.2) to save tokens but I'm getting the following error when storage.write() is called on an emulator (I'm using Pixel 5 API 30) whereas when I use it on my physical device (Honor 8x) it's working well…

KenTay7
- 111
- 1
- 10
1
vote
1 answer
Persist data even after clearing app's cache and storage using Flutter Secure Storage
I am using Flutter Secure Storage for storing data locally in my Flutter app. I need some of my data to persist even after the user clears app's cache and storage or uninstalls the app.
How do I do it?

Shrijan Regmi
- 450
- 5
- 10
1
vote
1 answer
While compiling an application from linux, the flutter_secure_storage package gives an error
While compiling an application from linux, the flutter_secure_storage package gives an error.
Error:-
Launching lib/main.dart on Linux in debug mode...
main.dart:1
CMake Error at…

karan duggal
- 11
- 2
1
vote
0 answers
Flutter: PlatformException(Exception encountered, deleteAll, java.lang.IllegalArgumentException: bad base-64
I use the secure storage package to store data relevant to my app usage.
Recently I created some new features not related to that package and everything works perfectly on development environment. But after deploying the app on the google play…

Caio Sant'Anna
- 304
- 4
- 22
1
vote
0 answers
I cannot keep user logged in while using flutter_secure_storage dependency in Flutter
In the main dart file I am trying to initialise the login page is username is not saved and initialise the dashboard page if username is saved through flutter secure storage
import 'dart:async';
import 'package:flutter/material.dart';
import…

Snehil Kumar
- 43
- 4
1
vote
4 answers
Flutter how can i set Auth token from flutter secure storage to dio header?
After login i setting user token to my user Secure storage. Like :
Future login(AuthRequstModel model) async {
try {
Response response = await _dio.post(loginPath, data: model);
if (response.statusCode == 200) {
…

Ugurcan Ucar
- 289
- 1
- 5
- 23
1
vote
1 answer
Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 18 declared in library [:flutter_secure_storage]
I downloaded a Flutter project and tried to run it but when I run the project I get the following error message:
C:\Users\A\Desktop\flutter_test2\android\app\src\debug\AndroidManifest.xml Error:
uses-sdk:minSdkVersion 16 cannot be smaller than…

Hasani
- 3,543
- 14
- 65
- 125
1
vote
0 answers
ListTile onTap: Need to Check JWT in Secure Storage and Then Proceed with Named Page Navigation
New to Flutter, and I'm stumped on how to proceed with my App.
My user has already been authenticated via an API call, and the user's JWT is already stored in Flutter Secure Storage (I have verified that the token can be read from storage).
I would…

MySilmaril
- 185
- 2
- 13
0
votes
0 answers
Can't get flutter_secure_storage to work on Arch Linux
I am on Arch Linux:
Linux (desktop) • linux • linux-x64 • Arch Linux 6.4.8-arch1-1
and I am trying to use flutter secure storage but I keep getting this error:
** (home_services_customer:14756): WARNING **: 14:44:06.788: libsecret_error:…

Youssef Atta'i
- 41
- 3
0
votes
1 answer
Using flutter_secure_storage with hydrated_bloc
I'm developing a flutter app and trying to use flutter_secure_storage with hydrated_bloc. To summarise the packages, flutter_secure_storage is an abstraction to encrypt data on the device, and hydrated_bloc is used with flutter_bloc to persist…

shennan
- 10,798
- 5
- 44
- 79