Loading topic
Intermediate · Mid: 13 chapters · 31 min read. States assumed prerequisites
Start readingflutter_secure_storage protects small secrets stored on a device, such as a refresh token. It does not make every piece of app data private or make an already-compromised device safe.async/await, Flutter packages, and the difference between access tokens and refresh tokens.async and await, Flutter packages, and the purpose of authentication tokens. The goal is to understand the storage model before choosing options or writing a token repository.async and await, Flutter project structure, and how to add packages with pub. You should also have a Flutter app that builds for Android or iOS and understand the purpose of an authentication token.async/await, and a Flutter app that already uses packages from pubspec.yaml. It also assumes you know that an authentication token is a credential that represents a signed-in session.async and await, Flutter packages, and the basic role of authentication tokens. This chapter focuses on placing flutter_secure_storage behind a small repository so the rest of the app does not depend directly on platform storage.async and await, a Flutter app that builds for Android or iOS, and familiarity with authentication tokens. The package stores small secret values through platform security services, but platform options decide when those values are available and how Android encryasync/await, Flutter packages, and authentication tokens. You should also understand the basic read, write, and delete methods of flutter_secure_storage.async and await, can add Flutter packages, and understand that an authentication token proves a session. This chapter focuses on what happens to stored secrets when the app lifecycle changes.async/await, Flutter tests, and the TokenRepository wrapper from the previous chapter. This chapter shows how to test that wrapper without starting Android or iOS.async and await, Flutter packages, and the token repository from the previous chapter. You will add local_auth, a package that asks the operating system to verify a fingerprint, face, or other supported biometric.async and await, Flutter package management, and authentication tokens. It also assumes that your Flutter app already builds on at least one target platform.async and await, Flutter package management, and the purpose of authentication tokens. The goal is to decide when flutter_secure_storage is suitable and when another design is needed.