import * as SecureStore from "expo-secure-store"; import type { KvStore } from "jazz-tools/react-native-core"; export class ExpoSecureStoreAdapter implements KvStore { async get(key: string): Promise { return SecureStore.getItemAsync(key, { requireAuthentication: false, keychainAccessible: SecureStore.AFTER_FIRST_UNLOCK, }); } async set(key: string, value: string): Promise { return SecureStore.setItemAsync(key, value, { requireAuthentication: false, keychainAccessible: SecureStore.AFTER_FIRST_UNLOCK, }); } async delete(key: string): Promise { return SecureStore.deleteItemAsync(key, { requireAuthentication: false, keychainAccessible: SecureStore.AFTER_FIRST_UNLOCK, }); } async clearAll(): Promise { throw new Error("Not implemented"); } }