ping-identity
    Preparing search index...

    Function configureSessionStorage

    • Registers and resolves a session storage handle.

      This function handles registration internally and returns a normalized storage configuration that can be passed to other modules or SDKs.

      Parameters

      • config: BaseStorageConfig

        Storage configuration parameters with platform-specific options

      • Optionaloptions: StorageLoggerOptions

      Returns any

      A branded SessionStorage handle with native storage id metadata

      If the configuration is missing or invalid

      const sessionStorage = configureSessionStorage({
      android: {
      keyAlias: 'session_key',
      fileName: 'session_data',
      strongBoxPreferred: true
      }
      });

      // Pass to Journey SDK
      // initJourney({ sessionStorage, ... });

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