Skip to main content

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

NameTypeDefault valueDescription
namestringundefined: name of the cookie
securebooleantrue: decrypt the cookie

Returns

Promise<any>

Defined in

onekijs/packages/onekijs-framework/src/utils/storage.ts:31