/** * React Native Keychain adapter (stub) * * This is a placeholder that will be replaced at runtime if react-native-keychain is installed. * The actual implementation would use react-native-keychain. */ import type { SecureStorageAdapter, SecureStorageOptions, StorageResult } from "./types"; export class ReactNativeKeychainStorage implements SecureStorageAdapter { readonly name = "react-native-keychain-stub"; readonly available: boolean = false; constructor(_options?: SecureStorageOptions) { // This is a stub - actual implementation requires react-native-keychain } async get(_key: string): Promise> { return { ok: false, error: "react-native-keychain not installed" }; } async set(_key: string, _value: string): Promise> { return { ok: false, error: "react-native-keychain not installed" }; } async delete(_key: string): Promise> { return { ok: false, error: "react-native-keychain not installed" }; } async has(_key: string): Promise> { return { ok: false, error: "react-native-keychain not installed" }; } async clear(): Promise> { return { ok: false, error: "react-native-keychain not installed" }; } }