Skip to content

NextCookies

The subset of Next.js’s ReadonlyRequestCookies / ResponseCookies API this adapter depends on. Kept structural to avoid importing next at runtime from this framework-agnostic shim.

delete(name): void

Parameter Type
name string

void


get(name): { value?: string; } | undefined

Parameter Type
name string

{ value?: string; } | undefined


set(name, value, opts?): void

Parameter Type
name string
value string
opts? { expires?: Date; httpOnly?: boolean; maxAge?: number; path?: string; sameSite?: "lax" | "strict" | "none"; secure?: boolean; }
opts.expires? Date
opts.httpOnly? boolean
opts.maxAge? number
opts.path? string
opts.sameSite? "lax" | "strict" | "none"
opts.secure? boolean

void