cuki
• default: object
Name | Type |
---|---|
Cuki |
typeof Cuki |
deleteCookie |
(name : string) => void |
getCookie |
(name : string) => string | number | boolean | null |
• Const
SameSiteEnum: Readonly<{ Lax
: string = 'Lax'; None
: string = 'None'; Strict
: string = 'Strict' }>
If none
is used, then the secure
option will be enabled by default.
Defined in: cuki.ts:46
▸ deleteCookie(name
: string): void
Deletes the cookie of the provided name, via setting the expiration date into the past
Name | Type |
---|---|
name |
string |
Returns: void
Defined in: cuki.ts:138
▸ getCookie(name
: string): string | number | boolean | null
Retrieve the cookie value from the browser. This is not a Cuki instance. This is the primitive value as stored by the browser.
Name | Type |
---|---|
name |
string |
Returns: string | number | boolean | null
Defined in: cuki.ts:131