ping-identity
    Preparing search index...

    Function configureOathStorage

    • Registers and resolves an OATH storage handle.

      This function registers an OATH storage configuration with the native layer and returns a branded handle that can be passed to createOathClient as OathClientConfig.storage to override the native SDK default storage backend.

      Parameters

      • config: BaseStorageConfig

        Storage configuration parameters with platform-specific options. On Android, set android.fileName to specify the SQLite database name. On iOS, OATH uses dedicated keychain security options — set iosOath.service, iosOath.requireBiometrics, iosOath.requireDevicePasscode, iosOath.biometricPrompt, and/or iosOath.accessGroup as needed.

      • Optionaloptions: StorageLoggerOptions

        Optional logger configuration

      Returns OathStorageHandle

      A branded OathStorageHandle with the registered native storage id

      If the configuration is missing or invalid

      import { configureOathStorage } from '@ping-identity/rn-storage';
      import { createOathClient } from '@ping-identity/rn-oath';

      const oathStorage = configureOathStorage({
      android: { fileName: 'oath_credentials.db' },
      iosOath: { service: 'com.example.oath', requireBiometrics: true }
      });

      const client = await createOathClient({ storage: oathStorage });

      TODO: Analyze implications of turning storage operations async to better handle errors from native bridge calls.