mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
commit
cdd3b43ccb
@ -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;
|
||||
|
||||
2
express-session/express-session.d.ts
vendored
2
express-session/express-session.d.ts
vendored
@ -30,7 +30,7 @@ declare namespace Express {
|
||||
secure?: boolean;
|
||||
httpOnly: boolean;
|
||||
domain?: string;
|
||||
expires: Date;
|
||||
expires: Date | boolean;
|
||||
serialize: (name: string, value: string) => string;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user