cookieStorage

1function cookieStorage(config?): Storage;

Defined in: account-kit/core/src/utils/cookies.ts:19

Function to create cookie based Storage

Parameters

ParameterTypeDescription

config?

{ domain?: string; sessionLength?: number; }

optional config object

config.domain?

string

optional domain to set the cookie on, eg: example.com if you want the cookie to work on all subdomains of example.com

config.sessionLength?

number

Deprecated

this option is deprecated and will be ignored

Returns

Storage

an instance of a browser storage object that leverages cookies