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: StorageLoggerOptionsOptional logger configuration
A branded OathStorageHandle with the registered native storage id
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 });
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
createOathClientasOathClientConfig.storageto override the native SDK default storage backend.