Optionaldomain(Optional) The domain of the cookie. Use a leading dot to share across subdomains, e.g. .example.com.
Optionalmax(Optional) The maximum age of the cookie in seconds. Defaults to 30 days.
Optionalpath(Optional) The path of the cookie. Defaults to /.
Optionalsame(Optional) The same-site attribute of the cookie. Defaults to 'Lax'.
Optionalsecure(Optional) Whether the cookie should only be sent over HTTPS. Defaults to true when the current page is HTTPS.
Attribute overrides for the bundled cookie storage adapter.
Defaults:
Path=/,SameSite=Lax,Secureon HTTPS,Max-Age30 days. Use this to share the session across subdomains or tightenSameSite.See
Next.js Quickstart