Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/interfaces/CookiesSetDeleteOptions.ts>CookiesSetDeleteOptions

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
interface CookiesSetDeleteOptions
import { type CookiesSetDeleteOptions } from "https://deno.land/x/deno_nest@v3.15.1/src/interfaces/CookiesSetDeleteOptions.ts";

Properties

optional
domain: string
optional
expires: Date
optional
httpOnly: boolean
optional
ignoreInsecure: boolean

For use in situations where requests are presented to Deno as "insecure" but are otherwise secure and so secure cookies can be treated as secure.

optional
maxAge: number
optional
path: string
optional
secure: boolean
optional
sameSite: "Strict" | "Lax" | "None"
optional
signed: boolean

When signed is true, you must provide a secret string signedSecret to be used for signing in Hono or set keys when app is created. Such as:

const app = await NestFactory.create(AppModule, Router, {
  keys: ["nest"],
});
optional
signedSecret: string

A secret key that can be used to verify the integrity of the cookie's value.