ping-identity
    Preparing search index...

    Function configureOidcStorage

    • Registers and resolves an OIDC 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 OidcStorage handle with native storage id metadata

      If the configuration is missing or invalid

      const oidcStorage = configureOidcStorage({
      android: {
      keyAlias: 'oidc_key',
      fileName: 'oidc_tokens',
      },
      ios: {
      account: 'com.example.app',
      encryptor: true,
      cacheable: false
      }
      });

      // Pass to OIDC configuration
      // configureOidc({ storage: oidcStorage, ... });

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