Function createDownloadAuth

  • Creates a GET auth event

    Parameters

    • signer: Signer

      the signer to use for signing the event

    • serverOrHash: string | string[]

      A server URL or one or many blob hashes

    • message: string

      A human readable explanation of what the auth token will be used for

    • expiration: number = ...

      The expiration time in seconds

    Returns Promise<SignedEvent>