Function makeCookieOptions

Make a CookieOptions object for use with getCookie, setCookie, and deleteCookie. The schema should be compatible with JSON meaning only null, booleans, numbers, strings, arrays, and objects can be used.

const MyCookie = makeCookieOptions({ name: "<unique name>", schema: z.object({ foo: z.string() }) })