mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Update passport-tests.ts
This commit is contained in:
@@ -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