Cookie storage for authentication data.
Methods
-
<static> cut(key)
-
Deletes an item from storage.
Parameters:
Name Type Description key
string Item key.
-
<static> get(key)
-
Gets an item from storage.
Parameters:
Name Type Description key
string Item key.
Returns:
Item with the given key.
- Type
- string
-
<static> has(key)
-
Checks if the item exists in storage.
Parameters:
Name Type Description key
string Item key.
Returns:
Whether the item exists in storage.
- Type
- boolean
-
<static> initAsync(callback)
-
Initializes cookie support and executes code after it is ready.
Parameters:
Name Type Description callback
function Called after cookie support is ready.
-
<static> set(key, value)
-
Puts an item into storage.
Parameters:
Name Type Description key
string Item key.
value
string Item to put.