From ec957359723cc630b4f062c00d5702c3dc99a127 Mon Sep 17 00:00:00 2001 From: douira Date: Fri, 17 Sep 2021 00:11:35 +0200 Subject: [PATCH] Add name field to cookie option --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index d42251ae49..64f3472f0e 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -107,7 +107,7 @@ interface EngineOptions { * might be used for sticky-session. Defaults to not sending any cookie. * @default false */ - cookie: CookieSerializeOptions | boolean; + cookie: CookieSerializeOptions & { name: string } | boolean; /** * the options that will be forwarded to the cors module */