Class

Cookie

Cookie(options)

A class to manage cookies.
Constructor
Parameters:
Name Type Description
options CookieOptions The options that can be used

View Source lib/Cookie.ts, line 10

Classes

Cookie

Methods

# getAuthCookie() → {string}

Returns the authentication token that was stored in the cookie.

View Source lib/Cookie.ts, line 66

string

# removeAuthCookie()

Removes the cookie used for authentication.

View Source lib/Cookie.ts, line 79

# setAuthCookie(token, options)

Stores the authentication token to the cookie.
Parameters:
Name Type Description
token string The authentication token to be stored.
options SetAuthCookieOptions Options for setting the auth cookie.

View Source lib/Cookie.ts, line 74