You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
MiddlewareCookieOptions
Object allowing to overwrite options of auth cookies (e.g. vsf-sap-token customer token cookie).
export type MiddlewareCookieOptions = Record<string, CookieOptions>;Referenced Types
e.CookieOptions