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

x/fathym_common/src/src.deps.ts>DenoKVOAuth.Cookie

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
interface DenoKVOAuth.Cookie
Re-export
import { type DenoKVOAuth } from "https://deno.land/x/fathym_common@v0.0.155/src/src.deps.ts";
const { Cookie } = DenoKVOAuth;

Represents an HTTP Cookie.

Properties

name: string

Name of the cookie.

value: string

Value of the cookie.

optional
expires: Date | number

The cookie's Expires attribute, either as an explicit date or UTC milliseconds.

optional
maxAge: number

The cookie's Max-Age attribute, in seconds. Must be a non-negative integer. A cookie with a maxAge of 0 expires immediately.

optional
domain: string

The cookie's Domain attribute. Specifies those hosts to which the cookie will be sent.

optional
path: string

The cookie's Path attribute. A cookie with a path will only be included in the Cookie request header if the requested URL matches that path.

optional
secure: boolean

The cookie's Secure attribute. If true, the cookie will only be included in the Cookie request header if the connection uses SSL and HTTPS.

optional
httpOnly: boolean

The cookie's HTTPOnly attribute. If true, the cookie cannot be accessed via JavaScript.

optional
sameSite: "Strict" | "Lax" | "None"

Allows servers to assert that a cookie ought not to be sent along with cross-site requests.

optional
unparsed: string[]

Additional key value pairs with the form "key=value"