Attribute overrides for every written cookie.
Document-like object whose cookie property is read/written.
Defaults to document in browsers and null (no-op) on the server —
only override for tests.
A SupportedStorage ready to pass to createClient.
Storage adapter that persists the session in
document.cookie.Pick this adapter when you need SSR (server reads the cookie on every request) or want to scope storage with
Secure,SameSite, orDomain. The simplest way to enable it iscreateClient({ storage: 'cookie' })or by passingcookieOptions— the SDK calls this factory internally.Defaults applied to every cookie:
Path=/,SameSite=Lax,Secureon HTTPS, 30-dayMax-Age. Override any of them throughoptions. Values larger than the per-cookie browser limit (~4 KB) are transparently split across numbered chunks (<key>.0,<key>.1, …) and re-assembled on read.