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

PropertyTypeDescription
domain?stringThe domain of the cookie; normalized with a preceding dot so that it is also valid for subdomains.
expirationDate?numberThe expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.
hostOnly?booleanWhether the cookie is a host-only cookie; this will only be true if no domain was passed.
httpOnly?booleanWhether the cookie is marked as HTTP only.
namestringThe name of the cookie.
path?stringThe path of the cookie.
sameSite'lax' | 'no_restriction' | 'strict' | 'unspecified'The Same Site policy applied to this cookie.
secure?booleanWhether the cookie is marked as secure.
session?booleanWhether the cookie is a session cookie or a persistent cookie with an expiration date.
valuestringThe value of the cookie.

Links to this page: