function cookieToInitialState(config, cookie?): undefined | StoredState;Defined in: account-kit/core/src/utils/cookies.ts:77
Converts a cookie into an initial state object
| Parameter | Type | Description |
|---|---|---|
| the account config containing the client store | |
|
| optional cookie string |
undefined | StoredState
the deserialized AlchemyClientState if the cookie exists, otherwise undefined