UNPKG

redux-persist-keychain-storage

Version:

Storage engine for redux-persist, which can store sensitive data on the iOS/Android Keychain/Keystore, by wrapping react-native-keychain

8 lines (6 loc) 232 B
type StorageApi = { getItem: (key: string) => Promise<string | null>; setItem: (key: string, item: string) => Promise<void>; removeItem: (key: string) => Promise<void>; }; export function createKeychainStorage(): StorageApi;