Flutter local storage: shared_preferences vs Hive vs flutter_secure_storage
A security review found refresh tokens sitting in plain text in our Flutter app's preferences file. This guide sorts local data into three buckets, explains what shared_preferences, Hive (and its maintained hive_ce fork) and flutter_secure_storage actually do on each platform, and covers the uninstall and backup traps.