# Type alias CookieOptions

CookieOptions: {
domain?: string;
enabled: boolean;
expires: number;
path?: string;
sameSite?: "lax" | "strict" | "none";
secure: boolean;
}

#### Type declaration

- ##### `Optional` domain?: string

- ##### enabled: boolean

- ##### expires: number

- ##### `Optional` path?: string

- ##### `Optional` sameSite?: "lax" | "strict" | "none"

- ##### secure: boolean

#### Description

Control how cookies behave

#### Field

`expires` Number of days for cookie to expire in. Use 0 to expire in same browser session.

#### Field

`secure` Whether the cookie is set securely.

- Defined in jslib/src/lib/types/types.ts:248