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(); });