Skip to content

CookieOptions

type CookieOptions = intersection | intersection

Options for ctx.cookies.set(). Discriminated on sameSite so that SameSite=None is a TypeScript error unless secure: true is also set: browsers reject the unsecured form, and silent correction would mask the bug.

Learn: Cookies

Last updated: