Skip to main content

All guides

Every guide by the task it answers: sign-in with Face ID, the key of an encrypted database, reinstalls, sharing with other apps, iCloud Keychain and tests.

Guides take one task from start to finish, in your app: which protection to choose, where each piece of code goes, what the user sees, and what to do when a step fails.

If you are new to the package, read the Quick start and Protection first: the guides build on keychain, createKeychain and the options of an item.

Sign-in and sessions​

I want to…Guide
Let the user back in with Face ID or a fingerprint, after a password or SSO sign-inSign-in with Face ID
Keep a fallback for a cancel, a lockout or changed biometricsSign-in with Face ID
Rotate the refresh token after every refresh without a promptSign-in with Face ID

Data and devices​

I want to…Guide
Encrypt MMKV or SQLite with a random key instead of one in the codeA key for MMKV or SQLCipher
Start clean after the app is deleted and installed again on iOSReinstalls
Share a token with my other apps, a widget or an extensionSharing between apps
Make an item follow the user to their other Apple devicesiCloud Keychain

Tests​

I want to…Guide
Run Jest without native codeTesting
Test a cancel, a lockout or changed biometrics in JestTesting
Test a phone without Face ID, or without a passcodeTesting
Test a migration from react-native-keychain or expo-secure-storeTesting
Pass Face ID or a fingerprint in Detox on a simulator or an emulatorTesting

Coming from another library​

Something not covered? The FAQ answers the common questions, and an issue is welcome.