Closed edeuss closed 2 years ago
I don't get it.. thats the whole point of biometric storage.. to require user authentication.. either through fingerprint, face id.. or password.. if you don't want this, have you tried setting authenticationRequired
to false? https://pub.dev/documentation/biometric_storage/latest/biometric_storage/StorageFileInitOptions-class.html
@hpoul I have it set to false, and the prompt still pops up.
This is how I have it set up.
BiometricStorageFile _storage = await BiometricStorage().getStorage(
'accessToken',
options: StorageFileInitOptions(
authenticationRequired: false,
),
);
@edeuss is it possible that you changed authenticationRequired
only after having written it once? it has to be set when writing the first time.. after that you would have to delete it and recreate it.. You can also change the name and try again
fwiw, I've just tried the example app and when writing/reading from the unauthenticated storage no password prompt is shown.
@hpoul I tried changing the name and it's still causing the popup, with authenticationRequired set to false. Had a few people test it on their macs (my app) and the popup happens for them too.
@edeuss can you checkout the repo and just run the example app if it works for you?
@hpoul Tried that can't seem to get it to run,
error: No profiles for 'design.codeux.biometricStorageExample' were found: Xcode couldn't find any Mac App Development provisioning profiles matching 'design.codeux.biometricStorageExample'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
** BUILD FAILED **
I tried to change the bundle identifier but no luck. (I have my apple developer account selected as the signer)
then just try to enable automatic signing 🤷♂️
Is this required to have a password entered to save stuff to the keychain? flutter_secure_storage Doesn't cause this popup.