From 32ce5226688be7ee04df405f431d410cb7a114cd Mon Sep 17 00:00:00 2001 From: Daniel Perez Alvarez Date: Sat, 17 Feb 2018 21:46:13 -0500 Subject: [PATCH] Update passport-tests.ts --- types/passport/passport-tests.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/passport/passport-tests.ts b/types/passport/passport-tests.ts index 23058684a7..630091afc7 100644 --- a/types/passport/passport-tests.ts +++ b/types/passport/passport-tests.ts @@ -151,6 +151,9 @@ app.use((req: express.Request, res: express.Response, next: (err?: any) => void) if (req.user.username) { req.user.username = "hello user"; } + if (req.user.id) { + req.user.id = "123"; + } } next(); });