Function: getCookie
▸ getCookie(name
, secure?
): Promise
<any
>
Get a cookie by name. Decrypt it if necessary check https://stackoverflow.com/questions/10730362/get-cookie-by-name
Parameters
Name | Type | Default value | Description |
---|---|---|---|
name | string | undefined | : name of the cookie |
secure | boolean | true | : decrypt the cookie |
Returns
Promise
<any
>
Defined in
onekijs/packages/onekijs-framework/src/utils/storage.ts:31