React Api Reference
    Preparing search index...

    Class ExternalE2EEKeyProvider

    Provides end-to-end encryption (E2EE) key management using a shared passphrase across all participants.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Sets the shared encryption key used for end-to-end encryption.

      Parameters

      • key: string | ArrayBuffer

        The shared encryption key, which can be a string or an ArrayBuffer.

      Returns Promise<void>

      A promise that resolves once the key has been successfully set.

      const keyProvider = new ExternalE2EEKeyProvider({
      discardFrameWhenCryptorNotReady: true,
      });

      await keyProvider.setSharedKey("<SECRET_KEY>");