Merge pull request #10719 from mahald/master

support for req.session.cookie.expires and cookieOptions.expires to be false (cookie only valid until Browser closes)
This commit is contained in:
Paul van Brenk 2016-08-19 13:47:30 -07:00 committed by GitHub
commit cdd3b43ccb
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ declare module "express-serve-static-core" {
interface CookieOptions {
maxAge?: number;
signed?: boolean;
expires?: Date;
expires?: Date | boolean;
httpOnly?: boolean;
path?: string;
domain?: string;

View File

@ -30,7 +30,7 @@ declare namespace Express {
secure?: boolean;
httpOnly: boolean;
domain?: string;
expires: Date;
expires: Date | boolean;
serialize: (name: string, value: string) => string;
}
}