Constructor
# new Cookie(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
CookieOptions
|
The options that can be used |
Classes
Methods
# setAuthCookie(token, options)
Stores the authentication token to the cookie.
Parameters:
Name | Type | Description |
---|---|---|
token |
string
|
The authentication token to be stored. |
options |
CookieAttributes
|
Options for setting the auth cookie. |