NuxtCookieEvent
Minimal interface over an h3 H3Event (or any cookie bag) that this adapter
needs. Kept structural so it works against Nuxt’s event without importing
h3 at runtime.
Methods
Section titled “Methods”deleteCookie()
Section titled “deleteCookie()”deleteCookie(
name,opts?):void
Delete a cookie.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
opts? |
{ path?: string; } |
opts.path? |
string |
Returns
Section titled “Returns”void
getCookie()
Section titled “getCookie()”getCookie(
name):string|undefined
Read a cookie value.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
Returns
Section titled “Returns”string | undefined
setCookie()
Section titled “setCookie()”setCookie(
name,value,opts?):void
Set a cookie with options.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
value |
string |
opts? |
{ httpOnly?: boolean; maxAge?: number; path?: string; sameSite?: "lax" | "strict" | "none"; secure?: boolean; } |
opts.httpOnly? |
boolean |
opts.maxAge? |
number |
opts.path? |
string |
opts.sameSite? |
"lax" | "strict" | "none" |
opts.secure? |
boolean |
Returns
Section titled “Returns”void