@openvireo/sdk - v1.0.0
    Preparing search index...

    Function openShare

    • Opens a share: counts one open on the server and decrypts. Throws passcode_required when the share has a passcode and none was given, and the server's invalid_passcode (with details.attemptsLeft) for a wrong one. info saves a request when the page already fetched it.

      Parameters

      • api: string
      • link: string | { id: string; key: Uint8Array }
      • opts: { http?: HttpOptions; info?: ShareInfo; passcode?: string } = {}

      Returns Promise<OpenedShare>