@bicycle-codes/session-cookie
    Preparing search index...

    Function sign

    • Sign the given data and return the signature as a string.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>
      • key: string
      • Optionalopts: Partial<{ algorithm: "sha-256" | "sha-512" }>

      Returns Promise<string>