# Class: Cookie
Represents a cookie object.
# Table of contents
# Constructors
# Methods
# Constructors
# constructor
• new Cookie()
# Methods
# parseCookie
▸ Static
parseCookie(cookie
): string
Converts an ICookie
object into a cookie string.
Throws
If the ltuid
or ltoken
key is missing in the ICookie
object.
# Parameters
Name | Type | Description |
---|---|---|
cookie | ICookie | The ICookie object to convert. |
# Returns
string
A string representing the cookie.
# Defined in
src/cookie/cookie.ts:67 (opens new window)
# parseCookieString
▸ Static
parseCookieString(cookieString
): ICookie
Parses a cookie string and returns a parsed ICookie object.
Throws
when ltuid or ltoken keys are not found in the cookie string.
# Parameters
Name | Type | Description |
---|---|---|
cookieString | string | The cookie string to be parsed. |
# Returns
- A parsed ICookie object.