goaaats / xl-authenticator

Android/iOS OTP authenticator app for XIVLauncher built in Flutter
GNU General Public License v3.0
38 stars 12 forks source link

Use encrypted storage for OTP secret #3

Closed alphaONE2 closed 3 years ago

alphaONE2 commented 3 years ago

This first checks to see if a secret has been stored in Flutter Secure Storage. If a secret is found there, it uses that. If not, it checks to see if a secret is stored in Shared Preferences. If one is found it immediately saves the secret to Flutter Secure Storage and then deletes it from Shared Preferences.

This works on my Android device, but I don't have an iOS device to test this on.

goaaats commented 3 years ago

Looks good, thank you. I will give this a try.