• Sets a cookie with a signature using the provided key.

    Parameters

    • key: CryptoKey

      The key used for signing the cookie.

    Returns ((context, name, value, options?) => Promise<Uint8Array>)

      • (context, name, value, options?): Promise<Uint8Array>
      • Parameters

        • context: Context<any, any, {}>

          The Hono context object.

        • name: string

          The name of the cookie to set.

        • value: string

          The value of the cookie to set.

        • Optional options: CookieOptions

          Optional cookie options.

        Returns Promise<Uint8Array>

        The signature of the cookie.

Generated using TypeDoc