Skip to content

Commit f0e4436

Browse files
Merge pull request #3271 from EzzeldinKandeel/EzzeldinKandeel-patch-1
Update passport.md
2 parents 130ca91 + b5d4064 commit f0e4436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/passport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ async login(@Request() req) {
372372

373373
#### Logout route
374374

375-
To log out, we can create an additional route that invokes `res.logout()` to clear the user's session. This is a typical approach used in session-based authentication, but it does not apply to JWTs.
375+
To log out, we can create an additional route that invokes `req.logout()` to clear the user's session. This is a typical approach used in session-based authentication, but it does not apply to JWTs.
376376

377377
```typescript
378378
@UseGuards(LocalAuthGuard)

0 commit comments

Comments
 (0)