cookieStorage

1const cookieStorage: (config?) => Storage;

Defined in: account-kit/core/dist/types/utils/cookies.d.ts:11

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