Configures a single cookie.

Hierarchy

  • CookieConfig

Properties

domain: string

Domain of the cookie

expirationDate?: number

The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.

hostOnly: boolean

Whether the cookie is a host-only cookie; this will only be true if no domain was passed.

httpOnly: boolean

Whether the cookie is marked as HTTP only.

name: string

Name of the cookie. Required.

path: string

Path of the cookie

sameSite: string

The Same Site policy applied to this cookie. Can be unspecified, no_restriction, lax or strict.

secure: boolean

Whether the cookie is marked as secure.

url: string

The URL to set the cookie for. Required

value: string

Value of the cookie. Required.

Generated using TypeDoc