mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Update passport-tests.ts
This commit is contained in:
committed by
GitHub
parent
d0e71f615e
commit
1d61b414bb
@@ -148,7 +148,9 @@ declare global {
|
||||
|
||||
app.use((req: express.Request, res: express.Response, next: (err?: any) => void) => {
|
||||
if (req.user) {
|
||||
req.user!.username = "hello user";
|
||||
if (req.user.username) {
|
||||
req.user.username = "hello user";
|
||||
}
|
||||
}
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user