Skip to content

ElectronCookie

Unofficial

A cookie stored in an Electron session.

Import:

import type { ElectronCookie } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ElectronCookie

Properties

Property Type Description
domain? string The domain of the cookie; normalized with a preceding dot so that it is also valid for subdomains.
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 The name of the cookie.
path? string The path of the cookie.
sameSite 'lax' | 'no_restriction' | 'strict' | 'unspecified' The Same Site policy applied to this cookie.
secure? boolean Whether the cookie is marked as secure.
session? boolean Whether the cookie is a session cookie or a persistent cookie with an expiration date.
value string The value of the cookie.

Links to this page: