Storing auth tokens securely in a Flutter app on Android
Our Flutter app kept the login token in SharedPreferences, wrote it to the device logs and allowed Android backups. None of it was obvious until a security review. Here is what we changed, with the code.