function parseCookie(cookie, key): undefined | string;Defined in: account-kit/core/src/utils/cookies.ts:116
Helper function that can be used to parse a cookie string on the server or client
| Parameter | Type | Description |
|---|---|---|
|
| the cookie string to parse |
|
| the key of the cookie to parse |
undefined | string
the value of the cookie given a key if it exists, otherwise undefined