HttpOnlyCookieStorageOpts

cart · /next·interface

Options bag for . Every field is optional — the factory applies defaults tuned for a Shopify-style sticky-cart: 180-day maxAge, sameSite=lax, secure in production, path /.

Properties

domain?
string
maxAge?
number
name?
string
path?
string
sameSite?
'lax' | 'strict' | 'none'

Example

const storage = httpOnlyCookieStorage({ name: 'my-shop-cart', maxAge: 86400 });

AuthBridge CartIdStorage CreateTypedCartActionsOpts FormCartActions NextEventBridge TypedCartActions NextEventBridgeHandlers createCartEnsurer

On this page